Class ControlMessage (0.16.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicabstractclass ControlMessageextendsWireMessageGeneric representation for a control wire message: that is, a message which does not handle any form of start-up, but reather general communications.
Inherited Members
Static Methods
create(ConnectionHandler connection)
publicstaticControlMessagecreate(ConnectionHandlerconnection)Factory method to create the message from the specific command type char.
ControlMessage
The constructed wire message given the input message.
Exception
If construction or reading fails.
getFormatCodes(DataInputStream input)
protectedstaticList<Short>getFormatCodes(DataInputStreaminput)Extract format codes from message (useful for both input and output format codes).
Exception
If reading fails in any way.
Constructors
ControlMessage(ConnectionHandler connection)
publicControlMessage(ConnectionHandlerconnection)ControlMessage(ConnectionHandler connection, int length, ControlMessage.ManuallyCreatedToken token)
protectedControlMessage(ConnectionHandlerconnection,intlength,ControlMessage.ManuallyCreatedTokentoken)Constructor for manually created Control messages.
Methods
handleError(Exception exception)
protectedvoidhandleError(Exceptionexception)Takes an Exception Object and relates its results to the user within the client.
Exception
if there is some issue in the sending of the error messages.
isExtendedProtocol()
publicbooleanisExtendedProtocol()