org.codehaus.plexus.archiver.zip

Class ZipFile.BoundedInputStream

private class ZipFile.BoundedInputStream extends InputStream

InputStream that delegates requests to the underlying RandomAccessFile, making sure that only bytes from a certain range can be read.
Field Summary
booleanaddDummyByte
longloc
longremaining
Constructor Summary
BoundedInputStream(long start, long remaining)
Method Summary
voidaddDummy()
Inflater needs an extra dummy byte for nowrap - see Inflater's javadocs.
intread()
intread(byte[] b, int off, int len)

Field Detail

addDummyByte

private boolean addDummyByte

loc

private long loc

remaining

private long remaining

Constructor Detail

BoundedInputStream

BoundedInputStream(long start, long remaining)

Method Detail

addDummy

void addDummy()
Inflater needs an extra dummy byte for nowrap - see Inflater's javadocs.

read

public int read()

read

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