DCT Lightfoot v3 API specification

com.dctl.j2me.io
Interface Readable

All Known Implementing Classes:
InputStream

public interface Readable

This is the readable interface that all input streams implement


Method Summary
 int read()
          read a byte
 int read(byte[] b, int off, int len)
          read a number of bytes from the input stream and store into the byte array
 long skip(long n)
          skip a number of bytes from the stream
 

Method Detail

read

public int read()
         throws IOException
read a byte

Returns:
the byte read
Throws:
IOException - if there is an IO error

read

public int read(byte[] b,
                int off,
                int len)
         throws IOException
read a number of bytes from the input stream and store into the byte array

Parameters:
b - The array to write into
off - The offset to start writing to
len - The maximum number of bytes to read
Returns:
the number of bytes read
Throws:
IOException - if there is an IO error

skip

public long skip(long n)
          throws IOException
skip a number of bytes from the stream

Parameters:
n - The number to skip
Throws:
IOException - if there is an IOError

DCT Lightfoot v3 API specification

DCT Lightfoot v3 API specification