Package org.infinispan.io
Class ImmutableMarshalledValueByteStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.infinispan.io.MarshalledValueByteStream
-
- org.infinispan.io.ImmutableMarshalledValueByteStream
-
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
,org.jboss.marshalling.ByteOutput
@ThreadSafe public final class ImmutableMarshalledValueByteStream extends MarshalledValueByteStream
A byte stream that is immutable. Bytes are captured during construction and cannot be written to thereafter.- Since:
- 5.1
- Author:
- Manik Surtani
-
-
Constructor Summary
Constructors Constructor Description ImmutableMarshalledValueByteStream(byte[] bytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object thatObject)
byte[]
getRaw()
int
hashCode()
int
size()
void
write(int b)
-
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream, write, write
-
-
-
-
Method Detail
-
size
public int size()
- Specified by:
size
in classMarshalledValueByteStream
-
getRaw
public byte[] getRaw()
- Specified by:
getRaw
in classMarshalledValueByteStream
-
write
public void write(int b) throws IOException
- Specified by:
write
in interfaceorg.jboss.marshalling.ByteOutput
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
-