public interface PolicyExpressionSerializer
PolicyExpression to an external medium and vice versa. The format of the serialized object is specific to the concrete implementation
of this interface.
PolicyExpression are useful to store the intermediate state generated by a PolicyLexiconParser.| Modifier and Type | Method and Description |
|---|---|
PolicyExpression |
deserialize(InputStream stream)
Deserializes the contents of input stream to a PolicyExpression.
|
void |
serialize(PolicyExpression expression,
OutputStream stream)
Serialized a
PolicyExpression to an output stream. |
PolicyExpression deserialize(InputStream stream) throws PolicyParseException
stream - The serialized content in an input stream.PolicyExpression that has been serialized.PolicyParseException - Thrown if the input stream cannot be deserialized successfully into a PolicyExpression object.void serialize(PolicyExpression expression, OutputStream stream) throws PolicyParseException
PolicyExpression to an output stream.expression - The expression to serialize.stream - The output stream to write the serialized expression to.PolicyParseException - Thrown if the PolicyExpression object cannot be successfully serialized to the output stream.Copyright © 2010-2016 The Direct Project. All Rights Reserved.