Package org.a11y.BrlAPI
Class Native
- java.lang.Object
-
- org.a11y.BrlAPI.Native
-
- Direct Known Subclasses:
Brlapi
public class Native extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected long
handle
-
Constructor Summary
Constructors Constructor Description Native()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acceptAllKeys()
void
acceptKeyRanges(long[][] ranges)
void
acceptKeys(long type, long[] keys)
void
closeConnection()
void
enterRawMode(java.lang.String driver)
int
enterTtyMode(int tty, java.lang.String driver)
void
enterTtyModeWithPath(int[] ttys, java.lang.String driver)
DisplaySize
getDisplaySize()
java.lang.String
getDriverName()
DisplaySize
getModelIdentifier()
static java.lang.String
getPacketTypeName(long type)
void
ignoreAllKeys()
void
ignoreKeyRanges(long[][] ranges)
void
ignoreKeys(long type, long[] keys)
void
leaveRawMode()
void
leaveTtyMode()
protected int
openConnection(ConnectionSettings desiredSettings, ConnectionSettings actualSettings)
long
readKey(boolean wait)
int
recvRaw(byte[] buffer)
int
sendRaw(byte[] buffer)
void
setFocus(int tty)
void
write(WriteArguments arguments)
void
writeDots(byte[] dots)
protected void
writeText(int cursor, java.lang.String text)
-
-
-
Method Detail
-
openConnection
protected int openConnection(ConnectionSettings desiredSettings, ConnectionSettings actualSettings) throws Error
- Throws:
Error
-
closeConnection
public void closeConnection()
-
getModelIdentifier
public DisplaySize getModelIdentifier() throws Error
- Throws:
Error
-
getDisplaySize
public DisplaySize getDisplaySize() throws Error
- Throws:
Error
-
enterTtyModeWithPath
public void enterTtyModeWithPath(int[] ttys, java.lang.String driver) throws Error
- Throws:
Error
-
write
public void write(WriteArguments arguments) throws Error
- Throws:
Error
-
getPacketTypeName
public static java.lang.String getPacketTypeName(long type)
-
-