phelps.io

Class InputStreamSlice

public class InputStreamSlice extends FilterInputStream

InputStream that reads a portion of another.

Version: $Revision: 1.1 $ $Date: 2003/06/12 17:43:45 $

Constructor Summary
InputStreamSlice(InputStream in, long offset, long length)
Creates InputStream that reads from in skipping the next offset bytes and reading the following length bytes or until end of stream whichever comes first.
Method Summary
voidmark(int readlimit)
intread()
intread(byte[] b)
intread(byte[] b, int off, int len)
voidreset()
longskip(long n)

Constructor Detail

InputStreamSlice

public InputStreamSlice(InputStream in, long offset, long length)
Creates InputStream that reads from in skipping the next offset bytes and reading the following length bytes or until end of stream whichever comes first.

Method Detail

mark

public void mark(int readlimit)

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)