Package io.sentry

Class SentryEnvelopeHeaderAdapter


  • @Internal
    public final class SentryEnvelopeHeaderAdapter
    extends com.google.gson.TypeAdapter<SentryEnvelopeHeader>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @Nullable SentryEnvelopeHeader read​(@NotNull com.google.gson.stream.JsonReader reader)  
      void write​(@NotNull com.google.gson.stream.JsonWriter writer, @Nullable SentryEnvelopeHeader value)  
      • Methods inherited from class com.google.gson.TypeAdapter

        fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SentryEnvelopeHeaderAdapter

        public SentryEnvelopeHeaderAdapter()
    • Method Detail

      • write

        public void write​(@NotNull
                          @NotNull com.google.gson.stream.JsonWriter writer,
                          @Nullable
                          @Nullable SentryEnvelopeHeader value)
                   throws java.io.IOException
        Specified by:
        write in class com.google.gson.TypeAdapter<SentryEnvelopeHeader>
        Throws:
        java.io.IOException
      • read

        @Nullable
        public @Nullable SentryEnvelopeHeader read​(@NotNull
                                                   @NotNull com.google.gson.stream.JsonReader reader)
                                            throws java.io.IOException
        Specified by:
        read in class com.google.gson.TypeAdapter<SentryEnvelopeHeader>
        Throws:
        java.io.IOException