Class SeekableInputStream

    • Field Detail

      • STRING_ENCODING_EMPTY_STRING

        private static final byte STRING_ENCODING_EMPTY_STRING
        See Also:
        Constant Field Values
      • STRING_ENCODING_CONSTANT_POOL

        static final byte STRING_ENCODING_CONSTANT_POOL
        See Also:
        Constant Field Values
      • STRING_ENCODING_UTF8_BYTE_ARRAY

        private static final byte STRING_ENCODING_UTF8_BYTE_ARRAY
        See Also:
        Constant Field Values
      • STRING_ENCODING_CHAR_ARRAY

        private static final byte STRING_ENCODING_CHAR_ARRAY
        See Also:
        Constant Field Values
      • STRING_ENCODING_LATIN1_BYTE_ARRAY

        private static final byte STRING_ENCODING_LATIN1_BYTE_ARRAY
        See Also:
        Constant Field Values
      • buffer

        private final byte[] buffer
      • pos

        private int pos
    • Constructor Detail

      • SeekableInputStream

        public SeekableInputStream​(byte[] buffer)
    • Method Detail

      • seek

        public void seek​(long pos)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • readFully

        public void readFully​(byte[] b)
      • readFully

        public void readFully​(byte[] dst,
                              int off,
                              int len)
      • readBoolean

        public boolean readBoolean()
                            throws java.io.IOException
        Specified by:
        readBoolean in interface IDataInput
        Throws:
        java.io.IOException
      • readByte

        public byte readByte()
                      throws java.io.IOException
        Specified by:
        readByte in interface IDataInput
        Throws:
        java.io.IOException
      • readUnsignedByte

        public int readUnsignedByte()
                             throws java.io.IOException
        Specified by:
        readUnsignedByte in interface IDataInput
        Throws:
        java.io.IOException
      • readShort

        public short readShort()
                        throws java.io.IOException
        Specified by:
        readShort in interface IDataInput
        Throws:
        java.io.IOException
      • readUnsignedShort

        public int readUnsignedShort()
                              throws java.io.IOException
        Specified by:
        readUnsignedShort in interface IDataInput
        Throws:
        java.io.IOException
      • readChar

        public char readChar()
                      throws java.io.IOException
        Specified by:
        readChar in interface IDataInput
        Throws:
        java.io.IOException
      • readInt

        public int readInt()
                    throws java.io.IOException
        Specified by:
        readInt in interface IDataInput
        Throws:
        java.io.IOException
      • readUnsignedInt

        public long readUnsignedInt()
                             throws java.io.IOException
        Specified by:
        readUnsignedInt in interface IDataInput
        Throws:
        java.io.IOException
      • readLong

        public long readLong()
                      throws java.io.IOException
        Specified by:
        readLong in interface IDataInput
        Throws:
        java.io.IOException
      • readFloat

        public float readFloat()
                        throws java.io.IOException
        Specified by:
        readFloat in interface IDataInput
        Throws:
        java.io.IOException
      • readDouble

        public double readDouble()
                          throws java.io.IOException
        Specified by:
        readDouble in interface IDataInput
        Throws:
        java.io.IOException
      • readRawString

        public java.lang.String readRawString​(byte encoding)
                                       throws java.io.IOException
        Specified by:
        readRawString in interface IDataInput
        Throws:
        java.io.IOException
      • skipString

        public void skipString()
                        throws java.io.IOException
        Specified by:
        skipString in interface IDataInput
        Throws:
        java.io.IOException