public class LimitInputStream extends FilterInputStream implements Channel
InputStream
up to specified max. lengthin
Constructor and Description |
---|
LimitInputStream(InputStream in,
long length) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
boolean |
isOpen() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
long |
skip(long n) |
mark, markSupported, read, reset
public LimitInputStream(InputStream in, long length)
public int read() throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class FilterInputStream
IOException
public long skip(long n) throws IOException
skip
in class FilterInputStream
IOException
public int available() throws IOException
available
in class FilterInputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface Channel
close
in class FilterInputStream
IOException
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.