Class JSONEncoder
- java.lang.Object
-
- com.couchbase.lite.internal.core.C4NativePeer
-
- com.couchbase.lite.internal.fleece.FLEncoder
-
- com.couchbase.lite.internal.fleece.JSONEncoder
-
- All Implemented Interfaces:
AutoCloseable
public final class JSONEncoder extends FLEncoder
-
-
Constructor Summary
Constructors Constructor Description JSONEncoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()byte[]finish()FLSliceResultfinish2()FLSliceResultfinish2Unmanaged()StringfinishJSON()-
Methods inherited from class com.couchbase.lite.internal.fleece.FLEncoder
beginArray, beginDict, endArray, endDict, getArg, getManagedEncoder, getUnmanagedEncoder, reset, setArg, toString, write, write, writeData, writeKey, writeNull, writeString, writeValue
-
-
-
-
Method Detail
-
finishJSON
@NonNull public String finishJSON() throws LiteCoreException
- Throws:
LiteCoreException
-
finish
@NonNull public byte[] finish() throws LiteCoreException- Overrides:
finishin classFLEncoder- Throws:
LiteCoreException
-
finish2
@NonNull public FLSliceResult finish2() throws LiteCoreException
- Overrides:
finish2in classFLEncoder- Throws:
LiteCoreException
-
finish2Unmanaged
@NonNull public FLSliceResult finish2Unmanaged() throws LiteCoreException
- Overrides:
finish2Unmanagedin classFLEncoder- Throws:
LiteCoreException
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classFLEncoder
-
-