Package org.infinispan.io
Class ImmutableMarshalledValueByteStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.infinispan.io.MarshalledValueByteStream
-
- org.infinispan.io.ImmutableMarshalledValueByteStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.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 booleanequals(java.lang.Object thatObject)byte[]getRaw()inthashCode()intsize()voidwrite(int b)
-
-
-
Method Detail
-
size
public int size()
- Specified by:
sizein classMarshalledValueByteStream
-
getRaw
public byte[] getRaw()
- Specified by:
getRawin classMarshalledValueByteStream
-
write
public void write(int b) throws java.io.IOException- Specified by:
writein interfaceorg.jboss.marshalling.ByteOutput- Specified by:
writein classjava.io.OutputStream- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object thatObject)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-