Package io.sentry
Interface ISerializer
- All Known Implementing Classes:
JsonSerializer
public interface ISerializer
-
Method Summary
Modifier and TypeMethodDescription<T> T
deserialize
(@NotNull Reader reader, @NotNull Class<T> clazz) <T,
R> T deserializeCollection
(@NotNull Reader reader, @NotNull Class<T> clazz, @Nullable JsonDeserializer<R> elementDeserializer) @Nullable SentryEnvelope
deserializeEnvelope
(@NotNull InputStream inputStream) void
serialize
(@NotNull SentryEnvelope envelope, @NotNull OutputStream outputStream) Serializes an envelope@NotNull String
<T> void
-
Method Details
-
deserializeCollection
@Nullable <T,R> T deserializeCollection(@NotNull @NotNull Reader reader, @NotNull @NotNull Class<T> clazz, @Nullable @Nullable JsonDeserializer<R> elementDeserializer) -
deserialize
-
deserializeEnvelope
-
serialize
- Throws:
IOException
-
serialize
void serialize(@NotNull @NotNull SentryEnvelope envelope, @NotNull @NotNull OutputStream outputStream) throws Exception Serializes an envelope- Parameters:
envelope
- an envelopeoutputStream
- which will not be closed automatically- Throws:
Exception
- an exception
-
serialize
- Throws:
Exception
-