@InterfaceAudience.Private public final class LimitInputStream extends FilterInputStream
in
Constructor and Description |
---|
LimitInputStream(InputStream in,
long limit) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
mark(int readLimit) |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
close, markSupported, read
public LimitInputStream(InputStream in, long limit)
public int available() throws IOException
available
in class FilterInputStream
IOException
public void mark(int readLimit)
mark
in class FilterInputStream
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 void reset() throws IOException
reset
in class FilterInputStream
IOException
public long skip(long n) throws IOException
skip
in class FilterInputStream
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.