Interface DataInputExt

All Superinterfaces:
DataInput
All Known Implementing Classes:
DataInputStreamBI, DataInputStreamLI

public interface DataInputExt extends DataInput

Extension of DataInputStream to support reading unsigned int and long values as well as ASCII (0 terminated) strings from byte stream.

Since:
Nov 28, 2005
  • Method Details

    • read

      int read() throws IOException
      Throws:
      IOException
    • mark

      void mark(int readLimit) throws IOException
      Throws:
      IOException
    • reset

      void reset() throws IOException
      Throws:
      IOException
    • readUnsignedInt

      long readUnsignedInt() throws IOException
      Reads 4 input bytes and returns a long value in the range 0-2^32.
      Returns:
      long value
      Throws:
      IOException
    • readUnsignedLong

      long readUnsignedLong() throws IOException
      Reads 8 input bytes and returns a long value in the range 0-2^63. Values greater than 2^63 won't be read correctly since they are not supported by java.
      Returns:
      long value
      Throws:
      IOException
    • readASCII

      String readASCII() throws IOException
      Reads a 0 terminated ASCII string from input stream
      Returns:
      string value
      Throws:
      IOException