org.infinispan.io
Class ImmutableMarshalledValueByteStream
java.lang.Object
java.io.OutputStream
org.infinispan.io.MarshalledValueByteStream
org.infinispan.io.ImmutableMarshalledValueByteStream
- All Implemented Interfaces:
- Closeable, Flushable
@ThreadSafe
public 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
ImmutableMarshalledValueByteStream
public ImmutableMarshalledValueByteStream(byte[] bytes)
size
public int size()
- Specified by:
size
in class MarshalledValueByteStream
getRaw
public byte[] getRaw()
- Specified by:
getRaw
in class MarshalledValueByteStream
write
public void write(int b)
throws IOException
- Specified by:
write
in class OutputStream
- Throws:
IOException
equals
public boolean equals(Object thatObject)
- Overrides:
equals
in class Object
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.