Closeable
, AutoCloseable
public class WindowsConsoleInputStream extends InputStream
Constructor | Description |
---|---|
WindowsConsoleInputStream(com.sun.jna.platform.win32.WinNT.HANDLE hConsoleInput,
Charset encoderCharset) |
|
WindowsConsoleInputStream(Charset encoderCharset) |
Modifier and Type | Method | Description |
---|---|---|
int |
available() |
|
Charset |
getEncoderCharset() |
|
com.sun.jna.platform.win32.WinNT.HANDLE |
getHandle() |
|
void |
onKeyEvent(java.util.function.Consumer<WinDef.KEY_EVENT_RECORD> handler) |
|
void |
onMouseEvent(java.util.function.Consumer<WinDef.MOUSE_EVENT_RECORD> handler) |
|
void |
onWindowBufferSizeEvent(java.util.function.Consumer<WinDef.WINDOW_BUFFER_SIZE_RECORD> handler) |
|
int |
read() |
|
int |
read(byte[] b,
int offset,
int length) |
close, mark, markSupported, read, readAllBytes, readNBytes, reset, skip, transferTo
public WindowsConsoleInputStream(Charset encoderCharset)
public WindowsConsoleInputStream(com.sun.jna.platform.win32.WinNT.HANDLE hConsoleInput, Charset encoderCharset)
public com.sun.jna.platform.win32.WinNT.HANDLE getHandle()
public Charset getEncoderCharset()
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int offset, int length) throws IOException
read
in class InputStream
IOException
public int available() throws IOException
available
in class InputStream
IOException
public void onKeyEvent(java.util.function.Consumer<WinDef.KEY_EVENT_RECORD> handler)
public void onMouseEvent(java.util.function.Consumer<WinDef.MOUSE_EVENT_RECORD> handler)
public void onWindowBufferSizeEvent(java.util.function.Consumer<WinDef.WINDOW_BUFFER_SIZE_RECORD> handler)
Copyright © 2020. All rights reserved.