Package gnu.io.rfc2217
Class SignatureCommand
- java.lang.Object
- 
- gnu.io.rfc2217.ComPortCommand
- 
- gnu.io.rfc2217.SignatureCommand
 
 
- 
 public class SignatureCommand extends ComPortCommand RFC 2217SIGNATUREcommand.- See Also:
- RFC 2217
 
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringENCODING
 - 
Constructor SummaryConstructors Constructor Description SignatureCommand(boolean client)Encoding constructor for signature requests.SignatureCommand(boolean client, java.lang.String signature)Encoding constructor.SignatureCommand(int[] bytes)Decoding constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandecodeFailed()java.lang.StringgetSignature()java.lang.StringtoString()Get the human-readable description of this option.voidvisit(ComPortCommandSwitch sw)Apply visitor pattern.- 
Methods inherited from class gnu.io.rfc2217.ComPortCommandequals, getBytes, getCommand, getName, hashCode, isServerCommand
 
- 
 
- 
- 
- 
Field Detail- 
ENCODINGpublic static final java.lang.String ENCODING - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
SignatureCommandpublic SignatureCommand(int[] bytes) Decoding constructor.- Parameters:
- bytes- encoded option starting with the- COM-PORT-OPTIONbyte NullPointerException if- bytesis null IllegalArgumentException if- byteshas length that is too short or too long IllegalArgumentException if- bytes[0]is not- RFC2217.COM_PORT_OPTIONIllegalArgumentException if- bytes[1]is not- RFC2217.SIGNATURE(client or server)
 
 - 
SignatureCommandpublic SignatureCommand(boolean client, java.lang.String signature)Encoding constructor.- Parameters:
- signature- signature string
- client- true for the client-to-server command, false for the server-to-client command
 
 - 
SignatureCommandpublic SignatureCommand(boolean client) Encoding constructor for signature requests.- Parameters:
- client- true for the client command, false for the server command
 
 
- 
 - 
Method Detail- 
toStringpublic java.lang.String toString() Description copied from class:ComPortCommandGet the human-readable description of this option.- Specified by:
- toStringin class- ComPortCommand
 
 - 
visitpublic void visit(ComPortCommandSwitch sw) Description copied from class:ComPortCommandApply visitor pattern.- Specified by:
- visitin class- ComPortCommand
- Parameters:
- sw- visitor switch handler
 
 - 
getSignaturepublic java.lang.String getSignature() 
 - 
decodeFailedpublic boolean decodeFailed() 
 
- 
 
-