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 void
close()
byte[]
finish()
FLSliceResult
finish2()
FLSliceResult
finish2Unmanaged()
String
finishJSON()
-
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:
finish
in classFLEncoder
- Throws:
LiteCoreException
-
finish2
@NonNull public FLSliceResult finish2() throws LiteCoreException
- Overrides:
finish2
in classFLEncoder
- Throws:
LiteCoreException
-
finish2Unmanaged
@NonNull public FLSliceResult finish2Unmanaged() throws LiteCoreException
- Overrides:
finish2Unmanaged
in classFLEncoder
- Throws:
LiteCoreException
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classFLEncoder
-
-