gnu.crypto.keyring
Class MeteredInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
gnu.crypto.keyring.MeteredInputStream
- final class MeteredInputStream
- extends java.io.FilterInputStream
Fields inherited from class java.io.FilterInputStream |
in |
Constructor Summary |
(package private) |
MeteredInputStream(java.io.InputStream in,
int limit)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MeteredInputStream
MeteredInputStream(java.io.InputStream in,
int limit)
limitReached
public boolean limitReached()
- Tests if the number of bytes read has reached the limit.
- Returns:
- True if the limit has been reached.
available
public int available()
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
mark
public void mark(int readLimit)
markSupported
public boolean markSupported()
read
public int read()
throws java.io.IOException
- Throws:
java.io.IOException
read
public int read(byte[] buf)
throws java.io.IOException
- Throws:
java.io.IOException
read
public int read(byte[] buf,
int off,
int len)
throws java.io.IOException
- Throws:
java.io.IOException
reset
public void reset()
throws java.io.IOException
- Throws:
java.io.IOException
skip
public long skip(long len)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2001, 2002, 2003
Free Software Foundation,
Inc. All Rights Reserved.