gnu.crypto.keyring

Class MeteredInputStream

final class MeteredInputStream extends FilterInputStream

Constructor Summary
MeteredInputStream(InputStream in, int limit)
Method Summary
intavailable()
voidclose()
booleanlimitReached()
Tests if the number of bytes read has reached the limit.
voidmark(int readLimit)
booleanmarkSupported()
intread()
intread(byte[] buf)
intread(byte[] buf, int off, int len)
voidreset()
longskip(long len)

Constructor Detail

MeteredInputStream

MeteredInputStream(InputStream in, int limit)

Method Detail

available

public int available()

close

public void close()

limitReached

public boolean limitReached()
Tests if the number of bytes read has reached the limit.

Returns: True if the limit has been reached.

mark

public void mark(int readLimit)

markSupported

public boolean markSupported()

read

public int read()

read

public int read(byte[] buf)

read

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

reset

public void reset()

skip

public long skip(long len)
Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.