Class ByteInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.io.DataInput, java.lang.AutoCloseable

    public class ByteInputStream
    extends java.io.DataInputStream
    Provides an easy way to read a byte array in chunks.
    • Field Summary

      • Fields inherited from class java.io.FilterInputStream

        in
    • Constructor Summary

      Constructors 
      Constructor Description
      ByteInputStream​(byte[] data)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] read​(int numberOfBytes)  
      byte[] readAll()  
      int readInteger()  
      byte readSigned()  
      int readUnsigned()  
      • Methods inherited from class java.io.DataInputStream

        read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes
      • Methods inherited from class java.io.FilterInputStream

        available, close, mark, markSupported, read, reset, skip
      • Methods inherited from class java.io.InputStream

        nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
      • Methods inherited from class java.lang.Object

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

      • ByteInputStream

        public ByteInputStream​(byte[] data)
    • Method Detail

      • read

        public byte[] read​(int numberOfBytes)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • readAll

        public byte[] readAll()
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • readInteger

        public int readInteger()
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • readSigned

        public byte readSigned()
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • readUnsigned

        public int readUnsigned()
                         throws java.io.IOException
        Throws:
        java.io.IOException