Package org.eclipse.cdt.utils.pty
Class PTYOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.eclipse.cdt.utils.pty.PTYOutputStream
-
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
- Direct Known Subclasses:
ConPTYOutputStream
public class PTYOutputStream extends 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 void
close()
Close the Readerprotected void
finalize()
void
write(byte[] b, int off, int len)
void
write(int b)
Implementation of read for the InputStream.-
Methods inherited from class java.io.OutputStream
flush, nullOutputStream, write
-
-
-
-
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 IOException
- Overrides:
write
in classOutputStream
- Throws:
IOException
- See Also:
OutputStream.write(byte[], int, int)
-
write
public void write(int b) throws IOException
Implementation of read for the InputStream.- Specified by:
write
in classOutputStream
- Throws:
IOException
- on error.
-
close
public void close() throws IOException
Close the Reader- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
- on error.
-
finalize
protected void finalize() throws IOException
- Overrides:
finalize
in classObject
- Throws:
IOException
-
-