Package org.apache.fop.util
Class UnclosableInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.fop.util.UnclosableInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
Provides an InputStreamFilter which avoids closing the original stream.
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, read, read, read, reset, skip
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
UnclosableInputStream
Default constructor.- Parameters:
in
- the Stream to filter.
-
-
Method Details
-
close
public void close()Does not close the original stream.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterInputStream
-