Class ByteWriter

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private byte[] bytes  
    • Constructor Summary

      Constructors 
      Constructor Description
      ByteWriter​(byte... bytes)
      Construct a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void writeClass​(Marshaller marshaller, java.lang.Class<?> clazz)
      Write the predefined class reference to the stream.
      void writeObject​(Marshaller marshaller, java.lang.Object object)
      Write the predefined object reference to the stream.
      • Methods inherited from class java.lang.Object

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

      • bytes

        private final byte[] bytes
    • Constructor Detail

      • ByteWriter

        public ByteWriter​(byte... bytes)
        Construct a new instance.
        Parameters:
        bytes - the bytes to write
    • Method Detail

      • writeObject

        public void writeObject​(Marshaller marshaller,
                                java.lang.Object object)
                         throws java.io.IOException
        Description copied from interface: ObjectTable.Writer
        Write the predefined object reference to the stream.
        Specified by:
        writeObject in interface ObjectTable.Writer
        Parameters:
        marshaller - the marshaller to write to
        object - the object reference to write
        Throws:
        java.io.IOException - if an I/O error occurs
      • writeClass

        public void writeClass​(Marshaller marshaller,
                               java.lang.Class<?> clazz)
                        throws java.io.IOException
        Description copied from interface: ClassTable.Writer
        Write the predefined class reference to the stream.
        Specified by:
        writeClass in interface ClassTable.Writer
        Parameters:
        marshaller - the marshaller to write to
        clazz - the class reference to write
        Throws:
        java.io.IOException - if an I/O error occurs