Package io.sentry
Class JsonObjectWriter
- java.lang.Object
-
- io.sentry.vendor.gson.stream.JsonWriter
-
- io.sentry.JsonObjectWriter
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
public final class JsonObjectWriter extends JsonWriter
-
-
Constructor Summary
Constructors Constructor Description JsonObjectWriter(java.io.Writer out, int maxDepth)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonObjectWriter
name(java.lang.String name)
Encodes the property name.JsonObjectWriter
value(@NotNull ILogger logger, @Nullable java.lang.Object object)
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
-
-
-
-
Method Detail
-
name
public JsonObjectWriter name(java.lang.String name) throws java.io.IOException
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:
java.io.IOException
-
value
public JsonObjectWriter value(@NotNull @NotNull ILogger logger, @Nullable @Nullable java.lang.Object object) throws java.io.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:
java.io.IOException
-
-