Package opennlp.tools.util.model
Class UncloseableInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- opennlp.tools.util.model.UncloseableInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class UncloseableInputStream extends FilterInputStream
AnInputStreamwhich cannot be closed.
-
-
Constructor Summary
Constructors Constructor Description UncloseableInputStream(InputStream in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()This method does not have any effect, as theInputStreamcannot be closed.-
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, transferTo
-
-
-
-
Constructor Detail
-
UncloseableInputStream
public UncloseableInputStream(InputStream in)
-
-
Method Detail
-
close
public void close() throws IOExceptionThis method does not have any effect, as theInputStreamcannot be closed.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterInputStream- Throws:
IOException
-
-