com.ibm.etools.systems.core.java
Class EnhancedDataInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.io.DataInputStream
com.ibm.etools.systems.core.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 © 2005 IBM Corp. All Rights Reserved.
Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.