Remote Systems
v6.4.1

com.ibm.etools.systems.core.java
Class EnhancedDataInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.FilterInputStream
          extended byjava.io.DataInputStream
              extended bycom.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.


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
EnhancedDataInputStream(InputStream in)
          Creates a data input stream that uses the specified underlying input stream.
 
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.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

EnhancedDataInputStream

public EnhancedDataInputStream(InputStream in)
Creates a data input stream that uses the specified underlying input stream.

Parameters:
in - the specified input stream.
Method Detail

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

Remote Systems
v6.4.1

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.