Package ghidra.pty.windows
Class HandleOutputStream
java.lang.Object
java.io.OutputStream
ghidra.pty.windows.HandleOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
HandleOutputStream
-
-
Method Details
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein 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:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-