public class LimitedInputStream extends InputStream
| Constructor and Description |
|---|
LimitedInputStream(InputStream in,
int maxBytes) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
static GZIPInputStream |
createGZIPInputStream(InputStream in,
int maxBytes) |
int |
getBytesLeft() |
int |
read() |
int |
read(byte[] buffer) |
int |
read(byte[] buffer,
int offset,
int count) |
long |
skip(long byteCount) |
mark, markSupported, resetpublic LimitedInputStream(InputStream in, int maxBytes)
public static GZIPInputStream createGZIPInputStream(InputStream in, int maxBytes) throws IOException
IOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] buffer,
int offset,
int count)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] buffer)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long byteCount)
throws IOException
skip in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic int getBytesLeft()
Copyright © 2016. All rights reserved.