Package io.sentry

Interface ISerializer

All Known Implementing Classes:
JsonSerializer

public interface ISerializer
  • Method Details

    • deserializeCollection

      @Nullable <T, R> T deserializeCollection(@NotNull @NotNull Reader reader, @NotNull @NotNull Class<T> clazz, @Nullable @Nullable JsonDeserializer<R> elementDeserializer)
    • deserialize

      @Nullable <T> T deserialize(@NotNull @NotNull Reader reader, @NotNull @NotNull Class<T> clazz)
    • deserializeEnvelope

      @Nullable @Nullable SentryEnvelope deserializeEnvelope(@NotNull @NotNull InputStream inputStream)
    • serialize

      <T> void serialize(@NotNull T entity, @NotNull @NotNull Writer writer) throws IOException
      Throws:
      IOException
    • serialize

      void serialize(@NotNull @NotNull SentryEnvelope envelope, @NotNull @NotNull OutputStream outputStream) throws Exception
      Serializes an envelope
      Parameters:
      envelope - an envelope
      outputStream - which will not be closed automatically
      Throws:
      Exception - an exception
    • serialize

      @NotNull @NotNull String serialize(@NotNull @NotNull Map<String,Object> data) throws Exception
      Throws:
      Exception