All Packages Class Hierarchy This Package Previous Next Index
Class semper.statement.StatementSerializable
java.lang.Object
|
+----semper.statement.Statement
|
+----semper.statement.StatementMemory
|
+----semper.statement.StatementSerializable
- public class StatementSerializable
- extends StatementMemory
A StatementSerializable is a subclass of StatementMemory, intended to handle
Statements created on serializable objects.
- Version:
- $Revision: 1.3 $ $Date: 1998/01/30 11:24:32 $
- Author:
- Jesper Drud Nielsen ([email protected]), Thomas Sepstrup Nielsen ([email protected]), Torben Pryds Pedersen ([email protected])
- See Also:
- CryptoMan, Statement, StatementMemory
-
StatementSerializable()
- Creates a new, empty StatementSerializable object.
-
StatementSerializable(Serializable)
- Creates a new StatementSerializable object containing message.
-
getPlainText()
- Returns the message in the StatementSerializable provided it is a plaintext.
-
printMessage()
- Temporary function printing the message using the objects toString() function.
StatementSerializable
public StatementSerializable()
- Creates a new, empty StatementSerializable object.
A new StatementSerializable object is created. All of its attributes are empty,
except that its message_type attribute indicates that the Statement
is empty. This method is intended for use by the recipient of a
linearized statement, who will make an empty statement and initialise
its contents from a stream.
StatementSerializable
public StatementSerializable(Serializable newMessage) throws StatementManException
- Creates a new StatementSerializable object containing message.
- Parameters:
- newMessage - The plaintext message to insert in the Statement
- Throws: StatementManException
- if newMessage cannt be converted into bytes
getPlainText
public Object getPlainText() throws StatementManException
- Returns the message in the StatementSerializable provided it is a plaintext.
- Returns:
- the array of bytes contained in the plaintext
- Throws: StatementManException
- if the statement is not a plaintext or the message is not
an array of bytes.
- Overrides:
- getPlainText in class StatementMemory
printMessage
protected void printMessage()
- Temporary function printing the message using the objects toString() function.
- Overrides:
- printMessage in class StatementMemory
All Packages Class Hierarchy This Package Previous Next Index