public abstract class FLEncoder extends C4NativePeer
Modifier and Type | Method and Description |
---|---|
boolean |
beginArray(long reserve) |
boolean |
beginDict(long reserve) |
abstract void |
close() |
boolean |
endArray() |
boolean |
endDict() |
byte[] |
finish() |
FLSliceResult |
finish2() |
FLSliceResult |
finish2Unmanaged() |
Object |
getArg(String key) |
static FLEncoder |
getManagedEncoder() |
static FLEncoder |
getUnmanagedEncoder(long peer) |
void |
reset() |
FLEncoder |
setArg(String key,
Object arg) |
String |
toString() |
boolean |
write(List<?> list) |
boolean |
write(Map<String,Object> map) |
boolean |
writeData(byte[] value) |
boolean |
writeKey(String slice) |
boolean |
writeNull() |
boolean |
writeString(String value) |
boolean |
writeValue(Object value) |
@NonNull public static FLEncoder getUnmanagedEncoder(long peer)
@NonNull public static FLEncoder getManagedEncoder()
@NonNull public String toString()
toString
in class C4NativePeer
public abstract void close()
public boolean writeNull()
public boolean writeString(String value)
public boolean writeData(byte[] value)
public boolean beginDict(long reserve)
public boolean endDict()
public boolean beginArray(long reserve)
public boolean endArray()
public boolean writeKey(String slice)
public boolean writeValue(@Nullable Object value)
public boolean write(@Nullable List<?> list)
public void reset()
@NonNull public byte[] finish() throws LiteCoreException
LiteCoreException
@NonNull public FLSliceResult finish2() throws LiteCoreException
LiteCoreException
@NonNull public FLSliceResult finish2Unmanaged() throws LiteCoreException
LiteCoreException