Package io.sentry
Class JsonObjectWriter
java.lang.Object
io.sentry.JsonObjectWriter
- All Implemented Interfaces:
ObjectWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionendArray()voidvoidsetLenient(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:
beginArrayin interfaceObjectWriter- Throws:
IOException
-
endArray
- Specified by:
endArrayin interfaceObjectWriter- Throws:
IOException
-
beginObject
- Specified by:
beginObjectin interfaceObjectWriter- Throws:
IOException
-
endObject
- Specified by:
endObjectin interfaceObjectWriter- Throws:
IOException
-
name
- Specified by:
namein interfaceObjectWriter- Throws:
IOException
-
value
- Specified by:
valuein interfaceObjectWriter- Throws:
IOException
-
jsonValue
- Specified by:
jsonValuein interfaceObjectWriter- Throws:
IOException
-
nullValue
- Specified by:
nullValuein interfaceObjectWriter- Throws:
IOException
-
value
- Specified by:
valuein interfaceObjectWriter- Throws:
IOException
-
value
- Specified by:
valuein interfaceObjectWriter- Throws:
IOException
-
value
- Specified by:
valuein interfaceObjectWriter- Throws:
IOException
-
value
- Specified by:
valuein interfaceObjectWriter- Throws:
IOException
-
value
- Specified by:
valuein 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:
valuein 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:
setLenientin interfaceObjectWriter
-
setIndent
-