Package io.sentry
Class JsonObjectWriter
java.lang.Object
io.sentry.JsonObjectWriter
- All Implemented Interfaces:
ObjectWriter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionendArray()
void
void
setLenient
(boolean lenient) value
(boolean value) value
(double value) value
(long value) Encodes a supported object (Null, String, Boolean, Number, Collection, Array, Map, JsonSerializable).
-
Constructor Details
-
JsonObjectWriter
-
-
Method Details
-
beginArray
- Specified by:
beginArray
in interfaceObjectWriter
- Throws:
IOException
-
endArray
- Specified by:
endArray
in interfaceObjectWriter
- Throws:
IOException
-
beginObject
- Specified by:
beginObject
in interfaceObjectWriter
- Throws:
IOException
-
endObject
- Specified by:
endObject
in interfaceObjectWriter
- Throws:
IOException
-
name
- Specified by:
name
in interfaceObjectWriter
- Throws:
IOException
-
value
- Specified by:
value
in interfaceObjectWriter
- Throws:
IOException
-
jsonValue
- Specified by:
jsonValue
in interfaceObjectWriter
- Throws:
IOException
-
nullValue
- Specified by:
nullValue
in interfaceObjectWriter
- Throws:
IOException
-
value
- Specified by:
value
in interfaceObjectWriter
- Throws:
IOException
-
value
- Specified by:
value
in interfaceObjectWriter
- Throws:
IOException
-
value
- Specified by:
value
in interfaceObjectWriter
- Throws:
IOException
-
value
- Specified by:
value
in interfaceObjectWriter
- Throws:
IOException
-
value
- Specified by:
value
in interfaceObjectWriter
- 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).- Specified by:
value
in interfaceObjectWriter
- Parameters:
logger
- The logger. May not be null.object
- Object to encode. May be null.- Returns:
- this writer.
- Throws:
IOException
-
setLenient
public void setLenient(boolean lenient) - Specified by:
setLenient
in interfaceObjectWriter
-
setIndent
-