Class SchemaParser

    • Method Detail

      • init

        public void init()
                  throws IOException
        Initializes a parser and its plumbing.
        Throws:
        IOException - if a pipe cannot be formed.
      • clear

        public void clear()
        Clear the parser.
      • parse

        public List<SchemaElementparse​(String schemaObject)
                                  throws IOException,
                                         ParseException
        Thread safe method parses an OpenLDAP schemaObject element/object.
        Parameters:
        schemaObject - the String image of a complete schema object
        Returns:
        The list of parsed schema elements
        Throws:
        IOException - If the schema file can't be processed
        ParseException - If we weren't able to parse the schema
      • parse

        public void parse​(File schemaFile)
                   throws IOException,
                          ParseException
        Thread safe method parses a file of OpenLDAP schemaObject elements/objects.
        Parameters:
        schemaFile - a file of schema objects
        Throws:
        IOException - If the schema file can't be processed
        ParseException - If we weren't able to parse the schema