Package org.a11y.brlapi
Class Connection
- java.lang.Object
-
- org.a11y.brlapi.Component
-
- org.a11y.brlapi.NativeComponent
-
- org.a11y.brlapi.ConnectionBase
-
- org.a11y.brlapi.Connection
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class Connection extends ConnectionBase
-
-
Field Summary
-
Fields inherited from class org.a11y.brlapi.Component
BYTE_MASK, UNICODE_BRAILLE_ROW
-
-
Constructor Summary
Constructors Constructor Description Connection(ConnectionSettings settings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
enterTtyMode()
int
enterTtyMode(int tty)
int
enterTtyMode(java.lang.String driver)
void
enterTtyModeWithPath(int... ttys)
void
enterTtyModeWithPath(int[] ttys, java.lang.String driver)
int
getCellCount()
Parameters
getParameters()
long
readKey()
void
write(byte[] dots)
void
write(int cursor)
void
write(int cursor, java.lang.String text)
void
write(java.lang.String text)
void
write(java.lang.String text, int cursor)
-
Methods inherited from class org.a11y.brlapi.ConnectionBase
acceptAllKeys, acceptKeyRanges, acceptKeys, close, enterRawMode, enterTtyMode, enterTtyModeWithPath, getAuthenticationScheme, getConnection, getDisplaySize, getDriverName, getFileDescriptor, getModelIdentifier, getParameter, getServerHost, ignoreAllKeys, ignoreKeyRanges, ignoreKeys, isUnusable, leaveRawMode, leaveTtyMode, pause, readKey, readKeyWithTimeout, recvRaw, sendRaw, setFocus, setParameter, setUnusable, unwatchParameter, watchParameter, write, writeDots, writeText
-
Methods inherited from class org.a11y.brlapi.Component
printf, toOperandName, toUnicodeBraille, toUnicodeBraille
-
-
-
-
Constructor Detail
-
Connection
public Connection(ConnectionSettings settings) throws ConnectException
- Throws:
ConnectException
-
-
Method Detail
-
getCellCount
public int getCellCount()
-
enterTtyMode
public int enterTtyMode(int tty)
-
enterTtyMode
public int enterTtyMode(java.lang.String driver)
-
enterTtyMode
public int enterTtyMode()
-
enterTtyModeWithPath
public void enterTtyModeWithPath(int[] ttys, java.lang.String driver)
-
enterTtyModeWithPath
public void enterTtyModeWithPath(int... ttys)
-
readKey
public final long readKey() throws java.io.InterruptedIOException
- Throws:
java.io.InterruptedIOException
-
write
public void write(byte[] dots)
-
write
public void write(int cursor, java.lang.String text)
-
write
public void write(java.lang.String text, int cursor)
-
write
public void write(int cursor)
-
write
public void write(java.lang.String text)
-
getParameters
public Parameters getParameters()
-
-