Package org.eclipse.cdt.utils.pty
Class PTYInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.eclipse.cdt.utils.pty.PTYInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class PTYInputStream extends java.io.InputStream- Since:
- 6.0
-
-
Constructor Summary
Constructors Constructor Description PTYInputStream(PTY.MasterFD fd)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()intread()Implementation of read for the InputStream.intread(byte[] buf, int off, int len)
-
-
-
Constructor Detail
-
PTYInputStream
public PTYInputStream(PTY.MasterFD fd)
From a Unix valid file descriptor set a Reader.- Parameters:
fd- file descriptor.
-
-
Method Detail
-
read
public int read() throws java.io.IOExceptionImplementation of read for the InputStream.- Specified by:
readin classjava.io.InputStream- Throws:
java.io.IOException- on error.
-
read
public int read(byte[] buf, int off, int len) throws java.io.IOException- Overrides:
readin classjava.io.InputStream- Throws:
java.io.IOException- See Also:
InputStream.read(byte[], int, int)
-
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.InputStream- Throws:
java.io.IOException- on error.
-
finalize
protected void finalize() throws java.io.IOException- Overrides:
finalizein classjava.lang.Object- Throws:
java.io.IOException
-
-