Class ByteStream


  • public class ByteStream
    extends java.lang.Object
    This is a wrapper around a byte buffer to allows streaming operations. This preserves my sanity, as managing arrays with irregular encodings is hell.
    Author:
    Thomas Morgner
    • Constructor Summary

      Constructors 
      Constructor Description
      ByteStream​(ByteBuffer buffer, int increment)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      byte get()  
      int getReadSize()  
      void put​(byte b)  
      void put​(byte[] b)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ByteStream

        public ByteStream​(ByteBuffer buffer,
                          int increment)
    • Method Detail

      • put

        public void put​(byte b)
      • put

        public void put​(byte[] b)
      • get

        public byte get()
      • close

        public void close()
      • getReadSize

        public int getReadSize()