Package org.a11y.brlapi
Class Client
java.lang.Object
org.a11y.brlapi.Component
org.a11y.brlapi.ProgramComponent
org.a11y.brlapi.Program
org.a11y.brlapi.Client
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
ApiErrorClient
,BoundCommandsClient
,ComputerBrailleClient
,DriverKeysClient
,EchoClient
,GetDriverClient
,GetModelClient
,GetSizeClient
,ListParametersClient
,PauseClient
,SetParameterClient
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static interface
protected static interface
protected static interface
Nested classes/interfaces inherited from class org.a11y.brlapi.Program
Program.Option
-
Field Summary
Fields inherited from class org.a11y.brlapi.Program
USAGE_OPTIONAL_BEGIN, USAGE_OPTIONAL_END, USAGE_REPEATING_INDICATOR
Fields inherited from class org.a11y.brlapi.ProgramComponent
EXIT_CODE_EXTERNAL, EXIT_CODE_INTERNAL, EXIT_CODE_SEMANTIC, EXIT_CODE_SUCCESS, EXIT_CODE_SYNTAX
Fields inherited from class org.a11y.brlapi.Component
BYTE_MASK, UNICODE_BRAILLE_ROW
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
extendUsageSummary
(StringBuilder usage) protected final Parameter
getParameter
(Connection connection, String name) final boolean
pause
(Connection connection, int milliseconds) protected final Client
rawMode
(Connection connection, String driver, Client.RawModeTask task) protected final Client
rawMode
(Connection connection, Client.RawModeTask task) protected abstract void
runClient
(Connection connection) protected final void
final Client
setAuthenticationScheme
(String scheme) final Client
setServerHost
(String host) protected final Client
ttyMode
(Connection connection, boolean keys, Client.TtyModeTask task, int... path) protected final Client
ttyMode
(Connection connection, String driver, Client.TtyModeTask task, int... path) Methods inherited from class org.a11y.brlapi.Program
addOption, addOptionalParameters, addRepeatingParameter, addRequiredParameters, getProgramName, getPurpose, getUsageSummary, isClient, onProgramException, processParameters, run, setProgramName, writeProgramMessage
Methods inherited from class org.a11y.brlapi.ProgramComponent
isClient, isClient
Methods inherited from class org.a11y.brlapi.Component
getObjectName, getObjectName, printf, toOperandName, toUnicodeBraille, toUnicodeBraille
-
Constructor Details
-
Client
-
-
Method Details
-
runClient
- Throws:
ProgramException
-
setServerHost
- Throws:
SyntaxException
-
setAuthenticationScheme
- Throws:
SyntaxException
-
extendUsageSummary
- Overrides:
extendUsageSummary
in classProgram
-
pause
-
runProgram
- Specified by:
runProgram
in classProgram
- Throws:
ProgramException
-
getParameter
- Throws:
SemanticException
-
ttyMode
protected final Client ttyMode(Connection connection, String driver, Client.TtyModeTask task, int... path) throws ProgramException - Throws:
ProgramException
-
ttyMode
protected final Client ttyMode(Connection connection, boolean keys, Client.TtyModeTask task, int... path) throws ProgramException - Throws:
ProgramException
-
rawMode
protected final Client rawMode(Connection connection, String driver, Client.RawModeTask task) throws ProgramException - Throws:
ProgramException
-
rawMode
protected final Client rawMode(Connection connection, Client.RawModeTask task) throws ProgramException - Throws:
ProgramException
-