gnu.crypto.keyring

Class MeteredInputStream


(package private) 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)

Constructor Details

MeteredInputStream

(package private)  MeteredInputStream(InputStream in,
                                      int limit)

Method Details

available

public int available()
            throws IOException


close

public void close()
            throws IOException


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()
            throws IOException


read

public int read(byte[] buf)
            throws IOException


read

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


reset

public void reset()
            throws IOException


skip

public long skip(long len)
            throws IOException


Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.