public class JavaSerializedObjectLexiconPolicyParser extends Object implements PolicyLexiconParser, PolicyExpressionSerializer
PolicyLexiconParser that parses expressions using the PolicyLexicon.JAVA_SER lexicon.
This parse uses the Java serialized object format to parse and serialize expressions.| Constructor and Description |
|---|
JavaSerializedObjectLexiconPolicyParser()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
PolicyExpression |
deserialize(InputStream stream)
Deserializes the contents of input stream to a PolicyExpression.
|
PolicyExpression |
parse(InputStream stream)
Parsers an expression from an input stream written in the specific lexicon into a
PolicyExpression object. |
void |
serialize(PolicyExpression expression,
OutputStream out)
Serialized a
PolicyExpression to an output stream. |
public JavaSerializedObjectLexiconPolicyParser()
public PolicyExpression parse(InputStream stream) throws PolicyParseException
PolicyExpression object.parse in interface PolicyLexiconParserstream - An input stream containing the expression written in the specific lexicon.PolicyExpression object resulting from parsing the input stream.PolicyParseException - Thrown in the input stream cannot be parsed into a PolicyExpression object.public PolicyExpression deserialize(InputStream stream) throws PolicyParseException
deserialize in interface PolicyExpressionSerializerstream - 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.public void serialize(PolicyExpression expression, OutputStream out) throws PolicyParseException
PolicyExpression to an output stream.serialize in interface PolicyExpressionSerializerexpression - The expression to serialize.out - 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.