com.vladium.jcd.lib
Class UDataInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by java.io.DataInputStream
              extended by com.vladium.jcd.lib.UDataInputStream
All Implemented Interfaces:
java.io.Closeable, java.io.DataInput

public final class UDataInputStream
extends java.io.DataInputStream

A trivial extension to java.io.DataInputStream to provide methods for reading unsigned 16- and 32-bit integers with simple mnemonics. It uses correspondingly wider native types to preserve the full range of the unsigned types.

Author:
(C) 2001, Vlad Roubtsov

Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
UDataInputStream(java.io.InputStream _in)
           
 
Method Summary
 int readU2()
           
 long readU4()
           
 
Methods inherited from class java.io.DataInputStream
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UDataInputStream

public UDataInputStream(java.io.InputStream _in)
Method Detail

readU2

public final int readU2()
                 throws java.io.IOException
Throws:
java.io.IOException

readU4

public final long readU4()
                  throws java.io.IOException
Throws:
java.io.IOException