phelps.io

Class InputStreamRandomAccess

public class InputStreamRandomAccess extends InputStream

InputStream that reads from RandomAccess.

Version: $Revision: 1.1 $ $Date: 2003/06/12 17:46:06 $

See Also: FileInputStream

Constructor Summary
InputStreamRandomAccess(RandomAccess raf)
Creates InputStream that reads from raf.
InputStreamRandomAccess(File file)
Creates InputStream that reads from file.
Method Summary
intavailable()
voidclose()
voidmark(int readlimit)
booleanmarkSupported()
intread()
intread(byte[] b)
intread(byte[] b, int off, int len)
voidreset()
longskip(long n)

Constructor Detail

InputStreamRandomAccess

public InputStreamRandomAccess(RandomAccess raf)
Creates InputStream that reads from raf.

InputStreamRandomAccess

public InputStreamRandomAccess(File file)
Creates InputStream that reads from file. Input is buffered.

Method Detail

available

public int available()

close

public void close()

mark

public void mark(int readlimit)

markSupported

public boolean markSupported()

read

public int read()

read

public int read(byte[] b)

read

public int read(byte[] b, int off, int len)

reset

public void reset()

skip

public long skip(long n)