com.fernsroth.easyio
Interface IInputStream

All Known Subinterfaces:
IRandomAccessSource
All Known Implementing Classes:
EasyIOInputStream, EasyIORandomAccessFile, RandomAccessByteArray

public interface IInputStream

Author:
Joseph M. Ferner (Near Infinity Corporation)

Method Summary
 int read()
          read a single byte.
 int read(byte[] buffer)
           
 int read(byte[] buffer, int off, int len)
           
 

Method Detail

read

int read()
         throws java.io.IOException
read a single byte.

Returns:
the data read.
Throws:
java.io.IOException

read

int read(byte[] buffer,
         int off,
         int len)
         throws java.io.IOException
Parameters:
buffer - the buffer to put the data in.
off - the offset into buffer to start reading into.
len - the length to read.
Returns:
the number of bytes read.
Throws:
java.io.IOException

read

int read(byte[] buffer)
         throws java.io.IOException
Parameters:
buffer - the buffer to read data into.
Returns:
the number of bytes read.
Throws:
java.io.IOException


Copyright © 2006 null. All Rights Reserved.