Package 

Class BinaryDecoder

  • All Implemented Interfaces:
    io.outfoxx.sunday.mediatypes.codecs.MediaTypeDecoder

    
    public final class BinaryDecoder
     implements MediaTypeDecoder
                        

    Decodes binary data into binary data containers.

    Decoding to ByteArray, ByteString, InputStream, Source, and BufferedSource is supported.

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      BinaryDecoder()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      <T extends Any> T decode(Source data, KType type) Decodes binary data into a specific Java/Kotlin type.
      • Methods inherited from class kotlin.Any

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

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

      • BinaryDecoder

        BinaryDecoder()
    • Method Detail

      • decode

         <T extends Any> T decode(Source data, KType type)

        Decodes binary data into a specific Java/Kotlin type.

        Parameters:
        data - Binary data source.
        type - Target Java/Kotlin type.