org.infinispan.io
Class ImmutableMarshalledValueByteStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.infinispan.io.MarshalledValueByteStream
          extended by 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

Constructor Summary
ImmutableMarshalledValueByteStream(byte[] bytes)
           
 
Method Summary
 boolean equals(Object thatObject)
           
 byte[] getRaw()
           
 int size()
           
 void write(int b)
           
 
Methods inherited from class java.io.OutputStream
close, flush, write, write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImmutableMarshalledValueByteStream

public ImmutableMarshalledValueByteStream(byte[] bytes)
Method Detail

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.