All Packages Class Hierarchy This Package Previous Next Index
Class semper.statement.StatementString
java.lang.Object
|
+----semper.statement.Statement
|
+----semper.statement.StatementMemory
|
+----semper.statement.StatementString
- public class StatementString
- extends StatementMemory
A StatementString is a subclass of StatementMemory, intended to handle
Statements created from strings.
- Version:
- $Revision: 1.3 $ $Date: 1998/01/30 11:24:33 $
- Author:
- Jesper Drud Nielsen ([email protected]), Thomas Sepstrup Nielsen ([email protected]), Torben Pryds Pedersen ([email protected])
- See Also:
- CryptoMan, Statement, StatementMemory
-
StatementString()
- Creates a new, empty StatementString object.
-
StatementString(String)
- Creates a new StatementString object containing message, senderID and RecipientId.
-
getPlainText()
- Returns the message in the StatementString provided it is a plaintext.
-
printMessage()
- Temporary function printing the message.
StatementString
public StatementString()
- Creates a new, empty StatementString object.
A new StatementString 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.
StatementString
public StatementString(String newMessage) throws UnsupportedEncodingException
- Creates a new StatementString object containing message, senderID and RecipientId.
A new StatementString object containing a given plaintext and having a
sender identification and recipient identification.
- Parameters:
- newMessage - The plaintext message to insert in the Statement
- Throws: UnsupportedEncodingException
- if newMessage could not be converted to
bytearray
getPlainText
public Object getPlainText() throws StatementManException
- Returns the message in the StatementString 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.
- Overrides:
- printMessage in class StatementMemory
All Packages Class Hierarchy This Package Previous Next Index