Package org.infinispan.io
Class MarshalledValueByteStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.infinispan.io.MarshalledValueByteStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable,org.jboss.marshalling.ByteOutput
- Direct Known Subclasses:
ExpandableMarshalledValueByteStream,ImmutableMarshalledValueByteStream
public abstract class MarshalledValueByteStream extends 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 implementingByteOutputwe avoid the need for the byte stream to be wrapped byMarshalling.createByteOutput(OutputStream)- Since:
- 5.1
- Author:
- Manik Surtani, Sanne Grinovero
-
-
Constructor Summary
Constructors Constructor Description MarshalledValueByteStream()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract byte[]getRaw()abstract intsize()-
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream, write, write, write
-
-