net.sf.container
Interface PolicyParser

All Known Implementing Classes:
PolicyFileParser

public interface PolicyParser

Parse a policy file and propagate parsing events to the parse listener.

This interface is primarily used to provide with concrete parsing algorithms for policy files.
created on Jun 13, 2005

Since:
Version:
$Revision: 1.1 $
Author:
fiykov
See Also:
PolicyFileParser

Method Summary
 PolicyParseListener getListener()
           
 void parse(java.net.URL policyFile)
          parse policy file as given url file location
 void parse(java.net.URL url, java.io.Reader policyFile)
          parse policy file as given stream and url location
 void setListener(PolicyParseListener listener)
          set events listener
 

Method Detail

setListener

void setListener(PolicyParseListener listener)
set events listener

Parameters:
listener - to use

getListener

PolicyParseListener getListener()
Returns:
the attached events listener

parse

void parse(java.net.URL url,
           java.io.Reader policyFile)
           throws PolicyParseException
parse policy file as given stream and url location

Parameters:
url - of the policy file
policyFile - content to be parsed
Throws:
PolicyParseException

parse

void parse(java.net.URL policyFile)
           throws PolicyParseException,
                  java.io.FileNotFoundException,
                  java.io.IOException
parse policy file as given url file location

Parameters:
policyFile - to parse
Throws:
PolicyParseException
java.io.FileNotFoundException
java.io.IOException


Copyright © 2007 Nikolay Fiykov. All Rights Reserved.