public class DoubleMatrixTokenHandler extends java.lang.Object implements TokenHandler<DoubleMatrixToken>
Red (ishwinde) |
Red (ishwinde) |
Constructor and Description |
---|
DoubleMatrixTokenHandler() |
Modifier and Type | Method and Description |
---|---|
void |
convertToBytes(DoubleMatrixToken token,
java.io.DataOutputStream outputStream)
Write the DoubleMatrixToken to a byte array.
|
DoubleMatrixToken |
convertToToken(java.io.DataInputStream inputStream,
java.lang.Class<? extends DoubleMatrixToken> tokenType)
Read a DoubleMatrixToken from the input stream.
|
public void convertToBytes(DoubleMatrixToken token, java.io.DataOutputStream outputStream) throws java.io.IOException, IllegalActionException
convertToBytes
in interface TokenHandler<DoubleMatrixToken>
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 DoubleMatrixToken convertToToken(java.io.DataInputStream inputStream, java.lang.Class<? extends DoubleMatrixToken> tokenType) throws java.io.IOException, IllegalActionException
convertToToken
in interface TokenHandler<DoubleMatrixToken>
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 converting to a DoubleToken.TokenHandler.convertToToken(java.io.DataInputStream, Class)