gnu.crypto.keyring
final class MeteredInputStream extends FilterInputStream
Constructor Summary | |
---|---|
MeteredInputStream(InputStream in, int limit) |
Method Summary | |
---|---|
int | available() |
void | close() |
boolean | limitReached()
Tests if the number of bytes read has reached the limit.
|
void | mark(int readLimit) |
boolean | markSupported() |
int | read() |
int | read(byte[] buf) |
int | read(byte[] buf, int off, int len) |
void | reset() |
long | skip(long len) |
Returns: True if the limit has been reached.