Class EuGridPmaNamespacesParser

  • All Implemented Interfaces:
    NamespacesParser

    public class EuGridPmaNamespacesParser
    extends java.lang.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

      Fields 
      Modifier and Type Field Description
      static java.lang.String NS_REGEXP  
    • Constructor Summary

      Constructors 
      Constructor Description
      EuGridPmaNamespacesParser​(java.lang.String filePath, boolean openssl1Mode)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected int consumeQuoted​(char[] chars, int offset, java.lang.StringBuilder ret)  
      protected void handleEntry​(java.lang.String line)  
      java.util.List<NamespacePolicy> parse()  
      protected java.lang.String stripComments​(java.lang.String from)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EuGridPmaNamespacesParser

        public EuGridPmaNamespacesParser​(java.lang.String filePath,
                                         boolean openssl1Mode)
    • Method Detail

      • stripComments

        protected java.lang.String stripComments​(java.lang.String from)
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • handleEntry

        protected void handleEntry​(java.lang.String line)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • consumeQuoted

        protected int consumeQuoted​(char[] chars,
                                    int offset,
                                    java.lang.StringBuilder ret)
                             throws java.io.IOException
        Throws:
        java.io.IOException