Class ExtDataInput

  • All Implemented Interfaces:
    java.io.DataInput

    public class ExtDataInput
    extends DataInputDelegate
    • Constructor Detail

      • ExtDataInput

        public ExtDataInput​(java.io.InputStream in)
      • ExtDataInput

        public ExtDataInput​(java.io.DataInput delegate)
    • Method Detail

      • readIntArray

        public int[] readIntArray​(int length)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • skipInt

        public void skipInt()
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • skipCheckInt

        public void skipCheckInt​(int expected)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • skipCheckShort

        public void skipCheckShort​(short expected)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • skipCheckByte

        public void skipCheckByte​(byte expected)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • skipCheckChunkTypeInt

        public void skipCheckChunkTypeInt​(int expected,
                                          int possible)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • skipBytes

        public final int skipBytes​(int n)
                            throws java.io.IOException
        The general contract of DataInput doesn't guarantee all the bytes requested will be skipped and failure can occur for many reasons. We override this to try harder to skip all the bytes requested (this is similar to DataInputStream's wrapper).
        Specified by:
        skipBytes in interface java.io.DataInput
        Overrides:
        skipBytes in class DataInputDelegate
        Throws:
        java.io.IOException
      • readNullEndedString

        public java.lang.String readNullEndedString​(int length,
                                                    boolean fixed)
                                             throws java.io.IOException
        Throws:
        java.io.IOException