public class PTYOutputStream
extends java.io.OutputStream
| Constructor and 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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the Reader
|
protected void |
finalize() |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b)
Implementation of read for the InputStream.
|
public PTYOutputStream(PTY.MasterFD fd)
fd - file descriptor.public PTYOutputStream(PTY.MasterFD fd, boolean sendEotBeforeClose)
fd - file descriptor.sendEotBeforeClose - flags the stream to send an EOT character
before closing the stream to signalize end of stream.public void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionOutputStream.write(byte[], int, int)public void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOException - on error.public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOException - on error.protected void finalize()
throws java.io.IOException
finalize in class java.lang.Objectjava.io.IOExceptionCopyright (c) IBM Corp. and others 2004, 2014. All Rights Reserved.