Class ODataBinaryAdapter

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

public class ODataBinaryAdapter extends com.google.gson.TypeAdapter<byte[]>
For internal use only by data model classes
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    read(com.google.gson.stream.JsonReader jsonReader)
     
    void
    write(com.google.gson.stream.JsonWriter jsonWriter, byte[] bytes)
     

    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

    • ODataBinaryAdapter

      public ODataBinaryAdapter()
  • Method Details

    • write

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

      @Nullable public byte[] read(@Nonnull com.google.gson.stream.JsonReader jsonReader) throws IOException
      Specified by:
      read in class com.google.gson.TypeAdapter<byte[]>
      Throws:
      IOException