Class BinaryTypeAdapter

java.lang.Object
com.google.gson.TypeAdapter<byte[]>
com.sap.cloud.sdk.datamodel.odata.client.adapter.BinaryTypeAdapter

public class BinaryTypeAdapter extends com.google.gson.TypeAdapter<byte[]>
GSON type adapter for parsing and serialization of byte[].
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    read(com.google.gson.stream.JsonReader in)
    For internal use only by data model classes
    void
    write(com.google.gson.stream.JsonWriter out, byte[] entityValue)
     

    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 Details

    • BinaryTypeAdapter

      public BinaryTypeAdapter()
  • Method Details

    • read

      @Nullable public byte[] read(@Nonnull com.google.gson.stream.JsonReader in) throws IOException
      For internal use only by data model classes
      Specified by:
      read in class com.google.gson.TypeAdapter<byte[]>
      Throws:
      IOException
    • write

      public void write(@Nonnull com.google.gson.stream.JsonWriter out, @Nullable byte[] entityValue) throws IOException
      Specified by:
      write in class com.google.gson.TypeAdapter<byte[]>
      Throws:
      IOException