RSE
Release 1.0

org.eclipse.rse.services.clientserver.java
Class EnhancedDataInputStream

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


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

RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.