Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object thatObject)  
      byte[] getRaw()  
      int hashCode()  
      int size()  
      void write​(int b)  
      • Methods inherited from class java.io.OutputStream

        close, flush, nullOutputStream, 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

      • write

        public void write​(int b)
                   throws java.io.IOException
        Specified by:
        write in interface org.jboss.marshalling.ByteOutput
        Specified by:
        write in class java.io.OutputStream
        Throws:
        java.io.IOException
      • equals

        public boolean equals​(java.lang.Object thatObject)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object