org.eclipse.rse.services.clientserver.java
Class EnhancedDataInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.io.DataInputStream
org.eclipse.rse.services.clientserver.java.EnhancedDataInputStream
- All Implemented Interfaces:
- DataInput
- public class EnhancedDataInputStream
- extends DataInputStream
A data input stream that adds a method for reading an unsigned integer.
|
Method Summary |
long |
readUnsignedInt()
Reads the next four bytes of this input stream as an unsigned 32-bit long.
|
| 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.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnhancedDataInputStream
public EnhancedDataInputStream(InputStream in)
- Creates a data input stream that uses the specified underlying input stream.
- Parameters:
in - the specified input stream.
readUnsignedInt
public final long readUnsignedInt()
throws IOException
- Reads the next four bytes of this input stream as an unsigned 32-bit long.
Bytes
for this operation are read from the contained
input stream.
- Returns:
- the next four bytes of this input stream, interpreted as an
unsigned 32-bit long.
- Throws:
EOFException - if this input stream reaches the end before
reading four bytes.
IOException - if an I/O error occurs.- See Also:
FilterInputStream.in
Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.