Class MarshalledValueByteStream

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable, org.jboss.marshalling.ByteOutput
    Direct Known Subclasses:
    ExpandableMarshalledValueByteStream, ImmutableMarshalledValueByteStream

    public abstract class MarshalledValueByteStream
    extends java.io.OutputStream
    implements org.jboss.marshalling.ByteOutput
    A stream of bytes which can be written to, and the underlying byte array can be directly accessed. By implementing ByteOutput we avoid the need for the byte stream to be wrapped by Marshalling.createByteOutput(OutputStream)
    Since:
    5.1
    Author:
    Manik Surtani, Sanne Grinovero
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract byte[] getRaw()  
      abstract int size()  
      • Methods inherited from class java.io.OutputStream

        close, flush, nullOutputStream, write, write, write
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.jboss.marshalling.ByteOutput

        write, write, write
      • Methods inherited from interface java.io.Closeable

        close
      • Methods inherited from interface java.io.Flushable

        flush
    • Constructor Detail

      • MarshalledValueByteStream

        public MarshalledValueByteStream()
    • Method Detail

      • size

        public abstract int size()
      • getRaw

        public abstract byte[] getRaw()