- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- org.jline.utils.NonCloseableOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public class NonCloseableOutputStream extends java.io.FilterOutputStreamWrapper that prevents closing the underlying output stream. Used for system streams (System.out/System.err) to prevent closing the sharedFileDescriptor.
-
-
Constructor Summary
Constructors Constructor Description NonCloseableOutputStream(java.io.OutputStream out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidwrite(byte[] b, int off, int len)
-
-
-
Method Detail
-
write
public void write(byte[] b, int off, int len) throws java.io.IOException- Overrides:
writein classjava.io.FilterOutputStream- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.FilterOutputStream- Throws:
java.io.IOException
-
-