Class BinaryReader

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

    public class BinaryReader
    extends java.io.FilterInputStream
    Basically DataInputStream, but the bytes are parsed in reverse order
    • Field Summary

      • Fields inherited from class java.io.FilterInputStream

        in
    • Constructor Summary

      Constructors 
      Constructor Description
      BinaryReader​(java.io.InputStream in)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getPosition()  
      boolean readBoolean()  
      byte readByte()  
      byte[] readBytes​(int len)  
      char readChar()  
      double readDouble()  
      float readFloat()  
      int readInt()  
      long readLong()  
      java.lang.String readNullTermString()  
      java.lang.String readNullTermString​(java.nio.charset.Charset charset)  
      short readShort()  
      • Methods inherited from class java.io.FilterInputStream

        available, close, mark, markSupported, read, read, 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

      • BinaryReader

        public BinaryReader​(java.io.InputStream in)
    • Method Detail

      • readInt

        public int readInt()
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • readBytes

        public byte[] readBytes​(int len)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • readByte

        public byte readByte()
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • readShort

        public short readShort()
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • readLong

        public long readLong()
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • readChar

        public char readChar()
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • readFloat

        public float readFloat()
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • readDouble

        public double readDouble()
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • readBoolean

        public boolean readBoolean()
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • readNullTermString

        public java.lang.String readNullTermString()
                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • readNullTermString

        public java.lang.String readNullTermString​(java.nio.charset.Charset charset)
                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • getPosition

        public int getPosition()