public class MessageBin extends MessageEvent
ErrorEvent,
CommandEvent, or ReplyEvent), may than create the
fully qualified message by passing it to one of the static
create... methods in the appropriate subclass.
The command lines read in are stored in a temporarly copy and are
retrieved as usually with getLine(). Parsing is not
possible. Calling this method accidentally results in a
UnsupportedOperationException to be thrown.
| Modifier and Type | Field and Description |
|---|---|
private String[] |
line
The command lines read in, unparsed.
|
SEPCHARlocalHost, sourceNamesource| Constructor and Description |
|---|
MessageBin(Object src,
String type,
long time)
Creates a new message bin object for temporaly reference
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getLine()
Returns the command-line(s) copy read in from the stream.
|
boolean |
isReferAcknowledge()
Allows classes to judge if this message bin referes to an acknowledge
event.
|
boolean |
isReferCommand()
A helper method that tries to figure out if this message bin is
referring to a command event.
|
boolean |
isReferDone()
Allows classes to judge if this message bin referes to a done
event.
|
boolean |
isReferError()
Allows classes to judge if this message bin referes to an error event.
|
boolean |
isReferInfo()
Allows classes to judge if this message bin referes to an info event.
|
boolean |
parseLine(String[] dummy)
Parsing is not allowed.
|
protected void |
setLine(String[] cl)
Sets the temporarly command line buffer.
|
checkType, equals, equalTime, equalTime, fromAscii, getAllCommandLines, getExecuteGroupKey, getHead, getNr, getTime, getType, hashCode, isValid, parseFromSingleString, readFromBufferedStream, setNr, setTime, setType, setValid, toSkippedString, toStringgetHost, getSourceName, setSourceNamegetSourceprivate String[] line
public String[] getLine()
getLine in class MessageEventprotected void setLine(String[] cl)
public boolean parseLine(String[] dummy)
parseLine in class MessageEventpublic boolean isReferError()
public boolean isReferInfo()
public boolean isReferAcknowledge()
public boolean isReferDone()
public boolean isReferCommand()
isReferError(),
isReferInfo(), isReferAcknowledge(), and
isReferDone().