public class ExceptionInputStream
extends org.apache.commons.io.input.ProxyInputStream
InputStream wrapper that throws an exception after a configurable number of bytes have
been read from the stream or when the end of the stream is reached.in| Constructor and Description |
|---|
ExceptionInputStream(InputStream in) |
ExceptionInputStream(InputStream in,
int maxBytes) |
| Modifier and Type | Method and Description |
|---|---|
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
public ExceptionInputStream(InputStream in)
public ExceptionInputStream(InputStream in, int maxBytes)
public int read()
throws IOException
read in class org.apache.commons.io.input.ProxyInputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class org.apache.commons.io.input.ProxyInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class org.apache.commons.io.input.ProxyInputStreamIOExceptionCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.