eu.emi.security.authn.x509.helpers.ns
Class EuGridPmaNamespacesParser

java.lang.Object
  extended by eu.emi.security.authn.x509.helpers.ns.EuGridPmaNamespacesParser
All Implemented Interfaces:
NamespacesParser

public class EuGridPmaNamespacesParser
extends Object
implements NamespacesParser

Parses a single EUGridPMA namespaces file and returns NamespacePolicy object. The syntax is defined in the document (available from the EUGridPMA website): eugridpma-namespaces-format-spec-20060113-0-1-4.doc, Mon, 16 January 2006. This class is not thread safe.

Author:
K. Benedyczak

Field Summary
static String NS_REGEXP
           
 
Constructor Summary
EuGridPmaNamespacesParser(String filePath)
           
 
Method Summary
protected  int consumeQuoted(char[] chars, int offset, StringBuilder ret)
           
protected  void handleEntry(String line)
           
 List<NamespacePolicy> parse()
           
protected  String stripComments(String from)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NS_REGEXP

public static final String NS_REGEXP
See Also:
Constant Field Values
Constructor Detail

EuGridPmaNamespacesParser

public EuGridPmaNamespacesParser(String filePath)
Method Detail

parse

public List<NamespacePolicy> parse()
                            throws IOException
Specified by:
parse in interface NamespacesParser
Throws:
IOException

stripComments

protected String stripComments(String from)
                        throws IOException
Throws:
IOException

handleEntry

protected void handleEntry(String line)
                    throws IOException
Throws:
IOException

consumeQuoted

protected int consumeQuoted(char[] chars,
                            int offset,
                            StringBuilder ret)
                     throws IOException
Throws:
IOException


Copyright © 2012-2013 European Middleware Initiative. All Rights Reserved.