Package ghidra.pty.unix
Class FdInputStream
java.lang.Object
java.io.InputStream
ghidra.pty.unix.FdInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
An input stream that wraps a native POSIX file descriptor
WARNING: This class makes use of jnr-ffi to invoke native functions. An invalid file descriptor is generally detected, but an incorrect, but valid file descriptor may cause undefined behavior.
-
Method Summary
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-