org.apache.james.mime4j.io
Class LimitedInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.james.mime4j.io.PositionInputStream
org.apache.james.mime4j.io.LimitedInputStream
- All Implemented Interfaces:
- Closeable
public class LimitedInputStream
- extends PositionInputStream
Method Summary |
int |
read()
|
int |
read(byte[] b,
int off,
int len)
|
long |
skip(long n)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LimitedInputStream
public LimitedInputStream(InputStream instream,
long limit)
read
public int read()
throws IOException
- Overrides:
read
in class PositionInputStream
- Throws:
IOException
read
public int read(byte[] b,
int off,
int len)
throws IOException
- Overrides:
read
in class PositionInputStream
- Throws:
IOException
skip
public long skip(long n)
throws IOException
- Overrides:
skip
in class PositionInputStream
- Throws:
IOException
Copyright © 2004-2012 JBoss by Red Hat. All Rights Reserved.