public class AttributeChangeTokenHandler extends java.lang.Object implements TokenHandler<AttributeChangeToken>
Red (pdf) |
Red (pdf) |
Constructor and Description |
---|
AttributeChangeTokenHandler() |
Modifier and Type | Method and Description |
---|---|
void |
convertToBytes(AttributeChangeToken token,
java.io.DataOutputStream outputStream)
Write the AttributeChangeToken to a byte array.
|
AttributeChangeToken |
convertToToken(java.io.DataInputStream inputStream,
java.lang.Class<? extends AttributeChangeToken> tokenType)
Read an AttributeChangeToken from the input stream.
|
public void convertToBytes(AttributeChangeToken token, java.io.DataOutputStream outputStream) throws java.io.IOException, IllegalActionException
convertToBytes
in interface TokenHandler<AttributeChangeToken>
token
- Token to be converted to bytes.outputStream
- The stream to write to.java.io.IOException
- If the stream cannot be written.IllegalActionException
- Not thrown in this class.TokenHandler.convertToBytes(ptolemy.data.Token, java.io.DataOutputStream)
public AttributeChangeToken convertToToken(java.io.DataInputStream inputStream, java.lang.Class<? extends AttributeChangeToken> tokenType) throws java.io.IOException, IllegalActionException
convertToToken
in interface TokenHandler<AttributeChangeToken>
inputStream
- The stream to read from.tokenType
- The type of token to be parsed.java.io.IOException
- If the stream cannot be read.IllegalActionException
- Not thrown in this class.TokenHandler.convertToToken(java.io.DataInputStream, Class)