public class Tokenizer
extends java.lang.Object
Constructor and Description |
---|
Tokenizer(byte[] payload)
Create a new instance of the tokenizer with the specified payload.
|
Modifier and Type | Method and Description |
---|---|
Token |
getNextToken()
Return the next token in the byte stream or null if there is none left.
|
public Tokenizer(byte[] payload)
payload
- the byte payload received from the MQTT broker.public Token getNextToken() throws java.io.IOException, IllegalActionException
java.io.IOException
- if there is a problem reading the byte streamIllegalActionException
- if there is a problem loading a token handler