Class BinaryLogProvider.ByteArrayMarshaller

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ByteArrayMarshaller()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] parse​(java.io.InputStream stream)
      Given an InputStream parse it into an instance of the declared type so that it can be passed to application code.
      private byte[] parseHelper​(java.io.InputStream stream)  
      java.io.InputStream stream​(byte[] value)
      Given a message, produce an InputStream for it so that it can be written to the wire.
      • Methods inherited from class java.lang.Object

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

      • ByteArrayMarshaller

        private ByteArrayMarshaller()
    • Method Detail

      • stream

        public java.io.InputStream stream​(byte[] value)
        Description copied from interface: MethodDescriptor.Marshaller
        Given a message, produce an InputStream for it so that it can be written to the wire. Where possible implementations should produce streams that are KnownLength to improve transport efficiency.
        Specified by:
        stream in interface MethodDescriptor.Marshaller<byte[]>
        Parameters:
        value - to serialize.
        Returns:
        serialized value as stream of bytes.
      • parse

        public byte[] parse​(java.io.InputStream stream)
        Description copied from interface: MethodDescriptor.Marshaller
        Given an InputStream parse it into an instance of the declared type so that it can be passed to application code.
        Specified by:
        parse in interface MethodDescriptor.Marshaller<byte[]>
        Parameters:
        stream - of bytes for serialized value
        Returns:
        parsed value
      • parseHelper

        private byte[] parseHelper​(java.io.InputStream stream)
                            throws java.io.IOException
        Throws:
        java.io.IOException