Package ghidra.pty.windows
Class HandleOutputStream
java.lang.Object
java.io.OutputStream
ghidra.pty.windows.HandleOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
HandleOutputStream
-
-
Method Details
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
isBuffered
protected boolean isBuffered()Check whether this handle has buffered outputWindows can get touchy when trying to flush handles that are not actually buffered. If the wrapped handle is not buffered, then this method must return false, otherwise, any attempt to flush this stream will result in
ERROR_INVALID_HANDLE
.- Returns:
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-