org.iperg.part.core
Interface IpInputStream

All Known Implementing Classes:
IpIoStream

public interface IpInputStream

The IpInputStream interface specifies methods for reading various types of data from a byte stream.

Version:
1.0.0 Initial version
Author:
Olov Stahl - olovs@sics.se

Method Summary
 int available()
          Returns the number of bytes that can be read from this input stream.
 boolean readBoolean()
          Reads a boolean from the input stream.
 byte readByte()
          Reads a byte from the input stream.
 byte[] readBytes()
          Read an array of bytes from the input stream
 char readChar()
          Reads a 16 bits char from the input stream.
 double readDouble()
          Reads a double from the input stream.
 float readFloat()
          Reads a float from the input stream.
 int readInt()
          Reads an int from the input stream.
 long readLong()
          Reads a long from the input stream.
 java.lang.Object readObject()
           
 short readShort()
          Reads a short from the input stream.
 java.lang.String readString()
          Reads a string from the input stream.
 

Method Detail

readByte

byte readByte()
Reads a byte from the input stream.

Returns:
a byte.

readBoolean

boolean readBoolean()
Reads a boolean from the input stream.

Returns:
a boolean.

readChar

char readChar()
Reads a 16 bits char from the input stream.

Returns:
a char.

readShort

short readShort()
Reads a short from the input stream.

Returns:
a short.

readInt

int readInt()
Reads an int from the input stream.

Returns:
an int.

readLong

long readLong()
Reads a long from the input stream.

Returns:
a long.

readFloat

float readFloat()
Reads a float from the input stream.

Returns:
a float.

readDouble

double readDouble()
Reads a double from the input stream.

Returns:
a double.

readString

java.lang.String readString()
Reads a string from the input stream.

Returns:
a string.

readBytes

byte[] readBytes()
Read an array of bytes from the input stream

Returns:
The chunk that was read from the stream

readObject

java.lang.Object readObject()
                            throws java.io.IOException
Throws:
java.io.IOException

available

int available()
Returns the number of bytes that can be read from this input stream.

Returns:
The number of bytes that can be read from the stream