Package org.eclipse.cdt.utils.pty
Class PTYOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.eclipse.cdt.utils.pty.PTYOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public class PTYOutputStream extends java.io.OutputStream
-
-
Constructor Summary
Constructors Constructor Description PTYOutputStream(PTY.MasterFD fd)From a Unix valid file descriptor set a Reader.PTYOutputStream(PTY.MasterFD fd, boolean sendEotBeforeClose)From a Unix valid file descriptor set a Reader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close the Readerprotected voidfinalize()voidwrite(byte[] b, int off, int len)voidwrite(int b)Implementation of read for the InputStream.
-
-
-
Constructor Detail
-
PTYOutputStream
public PTYOutputStream(PTY.MasterFD fd)
From a Unix valid file descriptor set a Reader.- Parameters:
fd- file descriptor.
-
PTYOutputStream
public PTYOutputStream(PTY.MasterFD fd, boolean sendEotBeforeClose)
From a Unix valid file descriptor set a Reader.- Parameters:
fd- file descriptor.sendEotBeforeClose- flags the stream to send an EOT character before closing the stream to signalize end of stream.- Since:
- 5.9
-
-
Method Detail
-
write
public void write(byte[] b, int off, int len) throws java.io.IOException- Overrides:
writein classjava.io.OutputStream- Throws:
java.io.IOException- See Also:
OutputStream.write(byte[], int, int)
-
write
public void write(int b) throws java.io.IOExceptionImplementation of read for the InputStream.- Specified by:
writein classjava.io.OutputStream- Throws:
java.io.IOException- on error.
-
close
public void close() throws java.io.IOExceptionClose the Reader- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.OutputStream- Throws:
java.io.IOException- on error.
-
finalize
protected void finalize() throws java.io.IOException- Overrides:
finalizein classjava.lang.Object- Throws:
java.io.IOException
-
-