Class HInput

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public final class HInput
    extends java.lang.Object
    implements java.lang.AutoCloseable
    • Field Detail

      • stream

        public final java.io.InputStream stream
    • Constructor Detail

      • HInput

        public HInput​(byte[] bytes)
      • HInput

        public HInput​(java.io.InputStream stream)
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.io.IOException
      • readASCII

        public java.lang.String readASCII​(int maxBytes)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • readBigInteger

        public java.math.BigInteger readBigInteger​(int maxBytes)
                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • readBoolean

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

        public byte[] readByteArray​(int max)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • readInt

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

        public int readLength​(int max)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • readLong

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

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

        public java.lang.String readString​(int maxBytes)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • readUnsignedByte

        public int readUnsignedByte()
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • readUnsignedShort

        public int readUnsignedShort()
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • readUUID

        public java.util.UUID readUUID()
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • readVarInt

        public int readVarInt()
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • readVarLong

        public long readVarLong()
                         throws java.io.IOException
        Throws:
        java.io.IOException