Class EnableCommand
- java.lang.Object
-
- ej.rcommand.synchronous.Command<Boolean>
-
- ej.library.iot.rcommand.bluetooth.commands.EnableCommand
-
-
Field Summary
-
Fields inherited from class ej.rcommand.synchronous.Command
VOID_RESPONSE
-
-
Constructor Summary
Constructors Constructor Description EnableCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()BooleanreadResponseInternal(CommandReader reader)Reads and returns the response from the reader.voidwriteBody(CommandSender sender)Writes the body of the command.-
Methods inherited from class ej.rcommand.synchronous.Command
getResponse, isResponseReceived, readResponse
-
-
-
-
Method Detail
-
writeBody
public void writeBody(CommandSender sender) throws IOException
Description copied from class:CommandWrites the body of the command.- Specified by:
writeBodyin classCommand<Boolean>- Parameters:
sender- the sender used to send the command.- Throws:
IOException- if an I/O error occurs.
-
readResponseInternal
public Boolean readResponseInternal(CommandReader reader) throws IOException
Description copied from class:CommandReads and returns the response from the reader.- Specified by:
readResponseInternalin classCommand<Boolean>- Parameters:
reader- the reader used to read the response.- Returns:
- the response.
- Throws:
IOException- if an I/O error occurs.
-
-