public class UnionTokenHandler extends java.lang.Object implements TokenHandler<UnionToken>
| Red (ishwinde) |
| Red (ishwinde) |
| Constructor and Description |
|---|
UnionTokenHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
convertToBytes(UnionToken token,
java.io.DataOutputStream outputStream)
Write the UnionToken to a byte array.
|
UnionToken |
convertToToken(java.io.DataInputStream inputStream,
java.lang.Class<? extends UnionToken> tokenType)
Read a UnionToken from the input stream.
|
public void convertToBytes(UnionToken token, java.io.DataOutputStream outputStream) throws java.io.IOException, IllegalActionException
convertToBytes in interface TokenHandler<UnionToken>token - Token to be converted to bytes.outputStream - The stream to write to.java.io.IOException - If the stream cannot be written.IllegalActionException - If there is a problem loading the mapping from TokenHandlers.properties file.TokenHandler.convertToBytes(ptolemy.data.Token, java.io.DataOutputStream)public UnionToken convertToToken(java.io.DataInputStream inputStream, java.lang.Class<? extends UnionToken> tokenType) throws java.io.IOException, IllegalActionException
convertToToken in interface TokenHandler<UnionToken>inputStream - The stream to read from.tokenType - The type of token to be parsed.java.io.IOException - If the stream cannot be read.IllegalActionException - If there is a problem loading the mapping from TokenHandlers.properties file.TokenHandler.convertToToken(java.io.DataInputStream, Class)