Package org.eclipse.cdt.utils.pty
Class PTYInputStream
java.lang.Object
java.io.InputStream
org.eclipse.cdt.utils.pty.PTYInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
ConPTYInputStream
- Since:
- 6.0
-
Constructor Summary
ConstructorDescriptionFrom a Unix valid file descriptor set a Reader. -
Method Summary
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
PTYInputStream
From a Unix valid file descriptor set a Reader.- Parameters:
fd
- file descriptor.
-
-
Method Details
-
read
Implementation of read for the InputStream.- Specified by:
read
in classInputStream
- Throws:
IOException
- on error.
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
- See Also:
-
close
Close the Reader- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
- on error.
-
finalize
- Overrides:
finalize
in classObject
- Throws:
IOException
-