Package org.apache.commons.io.input
Class UncheckedFilterInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- org.apache.commons.io.input.UncheckedFilterInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public final class UncheckedFilterInputStream extends java.io.FilterInputStreamABufferedReaderthat throwsUncheckedIOExceptioninstead ofIOException.To build an instance, see
UncheckedFilterInputStream.Builder.- Since:
- 2.12.0
- See Also:
BufferedReader,IOException,UncheckedIOException
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUncheckedFilterInputStream.BuilderBuilds a newUncheckedFilterInputStreaminstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()Calls this method's super and rethrowIOExceptionasUncheckedIOException.static UncheckedFilterInputStream.Builderbuilder()Constructs a newUncheckedFilterInputStream.Builder.voidclose()Calls this method's super and rethrowIOExceptionasUncheckedIOException.intread()Calls this method's super and rethrowIOExceptionasUncheckedIOException.intread(byte[] b)Calls this method's super and rethrowIOExceptionasUncheckedIOException.intread(byte[] b, int off, int len)Calls this method's super and rethrowIOExceptionasUncheckedIOException.voidreset()Calls this method's super and rethrowIOExceptionasUncheckedIOException.longskip(long n)Calls this method's super and rethrowIOExceptionasUncheckedIOException.
-
-
-
Method Detail
-
builder
public static UncheckedFilterInputStream.Builder builder()
Constructs a newUncheckedFilterInputStream.Builder.- Returns:
- a new
UncheckedFilterInputStream.Builder.
-
available
public int available() throws java.io.UncheckedIOExceptionCalls this method's super and rethrowIOExceptionasUncheckedIOException.- Overrides:
availablein classjava.io.FilterInputStream- Throws:
java.io.UncheckedIOException
-
close
public void close() throws java.io.UncheckedIOExceptionCalls this method's super and rethrowIOExceptionasUncheckedIOException.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.FilterInputStream- Throws:
java.io.UncheckedIOException
-
read
public int read() throws java.io.UncheckedIOExceptionCalls this method's super and rethrowIOExceptionasUncheckedIOException.- Overrides:
readin classjava.io.FilterInputStream- Throws:
java.io.UncheckedIOException
-
read
public int read(byte[] b) throws java.io.UncheckedIOExceptionCalls this method's super and rethrowIOExceptionasUncheckedIOException.- Overrides:
readin classjava.io.FilterInputStream- Throws:
java.io.UncheckedIOException
-
read
public int read(byte[] b, int off, int len) throws java.io.UncheckedIOExceptionCalls this method's super and rethrowIOExceptionasUncheckedIOException.- Overrides:
readin classjava.io.FilterInputStream- Throws:
java.io.UncheckedIOException
-
reset
public void reset() throws java.io.UncheckedIOExceptionCalls this method's super and rethrowIOExceptionasUncheckedIOException.- Overrides:
resetin classjava.io.FilterInputStream- Throws:
java.io.UncheckedIOException
-
skip
public long skip(long n) throws java.io.UncheckedIOExceptionCalls this method's super and rethrowIOExceptionasUncheckedIOException.- Overrides:
skipin classjava.io.FilterInputStream- Throws:
java.io.UncheckedIOException
-
-