org.infinispan.io
Class ImmutableMarshalledValueByteStream
java.lang.Object
java.io.OutputStream
org.infinispan.io.MarshalledValueByteStream
org.infinispan.io.ImmutableMarshalledValueByteStream
- All Implemented Interfaces:
- Closeable, Flushable, 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
Methods inherited from interface org.jboss.marshalling.ByteOutput |
write, write |
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 interface org.jboss.marshalling.ByteOutput
- Specified by:
write
in class OutputStream
- Throws:
IOException
equals
public boolean equals(Object thatObject)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.