Package io.sentry
Class JsonObjectWriter
java.lang.Object
io.sentry.vendor.gson.stream.JsonWriter
io.sentry.JsonObjectWriter
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionEncodes the property name.Encodes a supported object (Null, String, Boolean, Number, Collection, Array, Map, JsonSerializable).Methods inherited from class io.sentry.vendor.gson.stream.JsonWriter
beginArray, beginObject, close, endArray, endObject, flush, getSerializeNulls, isHtmlSafe, isLenient, jsonValue, nullValue, setHtmlSafe, setIndent, setLenient, setSerializeNulls, value, value, value, value, value, value
-
Constructor Details
-
JsonObjectWriter
-
-
Method Details
-
name
Description copied from class:JsonWriter
Encodes the property name.- Overrides:
name
in classJsonWriter
- Parameters:
name
- the name of the forthcoming value. May not be null.- Returns:
- this writer.
- Throws:
IOException
-
value
public JsonObjectWriter value(@NotNull @NotNull ILogger logger, @Nullable @Nullable Object object) throws IOException Encodes a supported object (Null, String, Boolean, Number, Collection, Array, Map, JsonSerializable).- Parameters:
logger
- The logger. May not be null.object
- Object to encode. May be null.- Returns:
- this writer.
- Throws:
IOException
-