Package io.sentry

Interface ISerializer

  • All Known Implementing Classes:
    JsonSerializer

    public interface ISerializer
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <T> T deserialize​(@NotNull java.io.Reader reader, @NotNull java.lang.Class<T> clazz)  
      @Nullable SentryEnvelope deserializeEnvelope​(@NotNull java.io.InputStream inputStream)  
      void serialize​(@NotNull SentryEnvelope envelope, @NotNull java.io.OutputStream outputStream)
      Serializes an envelope
      @NotNull java.lang.String serialize​(@NotNull java.util.Map<java.lang.String,​java.lang.Object> data)  
      <T> void serialize​(T entity, @NotNull java.io.Writer writer)  
    • Method Detail

      • deserialize

        @Nullable
        <T> T deserialize​(@NotNull
                          @NotNull java.io.Reader reader,
                          @NotNull
                          @NotNull java.lang.Class<T> clazz)
      • deserializeEnvelope

        @Nullable
        @Nullable SentryEnvelope deserializeEnvelope​(@NotNull
                                                     @NotNull java.io.InputStream inputStream)
      • serialize

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

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

        @NotNull
        @NotNull java.lang.String serialize​(@NotNull
                                            @NotNull java.util.Map<java.lang.String,​java.lang.Object> data)
                                     throws java.lang.Exception
        Throws:
        java.lang.Exception