|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.juoserver.protocol.DefaultMessageReader
public class DefaultMessageReader
Default MessageReader
implementation.
Constructor Summary | |
---|---|
|
DefaultMessageReader()
Default constructor. |
protected |
DefaultMessageReader(MessageDecoderProvider messageDecoderProvider,
boolean seedSent)
Builds a new DefaultMessageReader . |
Method Summary | |
---|---|
MessageReader |
createMessageReader()
|
protected MessageDecoderProvider |
getMessageDecoderProvider()
|
protected Message |
nextMessage(byte[] contents)
|
List<Message> |
readMessages(byte[] contents)
Returns a list of Message s by parsing the provided byte array packet chunk. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultMessageReader()
DefaultMessageReader
that uses a ClasspathMessageDecoderProvider
.
BadDecodableException
- in case a Decodable
Message
was misconfiguredprotected DefaultMessageReader(MessageDecoderProvider messageDecoderProvider, boolean seedSent)
DefaultMessageReader
.
messageDecoderProvider
- MessageDecoderProvider
to be used to identify
Message
types from their first byteseedSent
- when true, instructs the newly built reader to proceed as if
the LoginSeed
message has already been receivedMethod Detail |
---|
public List<Message> readMessages(byte[] contents)
MessageReader
Message
s by parsing the provided byte array packet chunk.
readMessages
in interface MessageReader
contents
- contents of the actual messages
Message
s by parsing the provided byte array packet chunkprotected Message nextMessage(byte[] contents)
protected MessageDecoderProvider getMessageDecoderProvider()
public MessageReader createMessageReader()
createMessageReader
in interface MessageReaderFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |