- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- org.jline.utils.NonCloseableInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class NonCloseableInputStream extends java.io.FilterInputStreamWrapper that prevents closing the underlying input stream. Used for system streams (System.in) to prevent closing the sharedFileDescriptor.
-
-
Constructor Summary
Constructors Constructor Description NonCloseableInputStream(java.io.InputStream in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()-
Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, read, read, read, reset, skip
-
-