Class Marshalling.StaticStreamHeader

  • All Implemented Interfaces:
    java.io.Serializable, StreamHeader
    Enclosing class:
    Marshalling

    private static final class Marshalling.StaticStreamHeader
    extends java.lang.Object
    implements StreamHeader, java.io.Serializable
    • Constructor Summary

      Constructors 
      Constructor Description
      StaticStreamHeader​(byte[] bytes)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void readHeader​(ByteInput input)
      Read the stream header from the stream.
      java.lang.String toString()  
      void writeHeader​(ByteOutput output)
      Write the stream header to the stream.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • headerBytes

        private final byte[] headerBytes
    • Constructor Detail

      • StaticStreamHeader

        public StaticStreamHeader​(byte[] bytes)
    • Method Detail

      • readHeader

        public void readHeader​(ByteInput input)
                        throws java.io.IOException
        Description copied from interface: StreamHeader
        Read the stream header from the stream.
        Specified by:
        readHeader in interface StreamHeader
        Parameters:
        input - the stream header
        Throws:
        java.io.IOException - if the header is invalid or an error occurs
      • writeHeader

        public void writeHeader​(ByteOutput output)
                         throws java.io.IOException
        Description copied from interface: StreamHeader
        Write the stream header to the stream.
        Specified by:
        writeHeader in interface StreamHeader
        Parameters:
        output - the stream header
        Throws:
        java.io.IOException - if an error occurs
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object