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 interfaceprotected static interfaceprotected static interfaceNested 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_INDICATORFields inherited from class org.a11y.brlapi.ProgramComponent
EXIT_CODE_EXTERNAL, EXIT_CODE_INTERNAL, EXIT_CODE_SEMANTIC, EXIT_CODE_SUCCESS, EXIT_CODE_SYNTAXFields inherited from class org.a11y.brlapi.Component
BYTE_MASK, UNICODE_BRAILLE_ROW -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidextendUsageSummary(StringBuilder usage) protected final ParametergetParameter(Connection connection, String name) final booleanpause(Connection connection, int milliseconds) protected final ClientrawMode(Connection connection, String driver, Client.RawModeTask task) protected final ClientrawMode(Connection connection, Client.RawModeTask task) protected abstract voidrunClient(Connection connection) protected final voidfinal ClientsetAuthenticationScheme(String scheme) final ClientsetServerHost(String host) protected final ClientttyMode(Connection connection, boolean keys, Client.TtyModeTask task, int... path) protected final ClientttyMode(Connection connection, String driver, Client.TtyModeTask task, int... path) Methods inherited from class org.a11y.brlapi.Program
addOption, addOptionalParameters, addRepeatingParameter, addRequiredParameters, getName, getUsageSummary, isClient, onProgramException, processParameters, run, writeProgramMessageMethods inherited from class org.a11y.brlapi.ProgramComponent
getProgramName, isClient, isClientMethods inherited from class org.a11y.brlapi.Component
printf, toOperandName, toUnicodeBraille, toUnicodeBraille
-
Constructor Details
-
Client
-
-
Method Details
-
runClient
- Throws:
ProgramException
-
setServerHost
- Throws:
SyntaxException
-
setAuthenticationScheme
- Throws:
SyntaxException
-
extendUsageSummary
- Overrides:
extendUsageSummaryin classProgram
-
pause
-
runProgram
- Specified by:
runProgramin 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
-