Infinispan Distribution 5.2.6.Final-redhat-2

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, 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
ImmutableMarshalledValueByteStream(byte[] bytes)
           
 
Method Summary
 boolean equals(Object thatObject)
           
 byte[] getRaw()
           
 int hashCode()
           
 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, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.marshalling.ByteOutput
write, write
 
Methods inherited from interface java.io.Closeable
close
 
Methods inherited from interface java.io.Flushable
flush
 

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 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

Infinispan Distribution 5.2.6.Final-redhat-2

Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.