public class SchemaParser extends Object
| Constructor and Description |
|---|
SchemaParser()
Creates a reusable instance of an SchemaParser.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the parser.
|
void |
init()
Initializes a parser and its plumbing.
|
void |
parse(File schemaFile)
Thread safe method parses a file of OpenLDAP schemaObject elements/objects.
|
List<SchemaElement> |
parse(InputStream schemaIn)
Thread safe method parses a stream of OpenLDAP schemaObject elements/objects.
|
List<SchemaElement> |
parse(String schemaObject)
Thread safe method parses an OpenLDAP schemaObject element/object.
|
public SchemaParser()
throws IOException
IOException - if the pipe cannot be formedpublic void init()
throws IOException
IOException - if a pipe cannot be formed.public void clear()
public List<SchemaElement> parse(String schemaObject) throws IOException, ParseException
schemaObject - the String image of a complete schema objectIOException - If the schema file can't be processedParseException - If we weren't able to parse the schemapublic List<SchemaElement> parse(InputStream schemaIn) throws IOException, ParseException
schemaIn - a stream of schema objectsIOException - If the schema file can't be processedParseException - If we weren't able to parse the schemapublic void parse(File schemaFile) throws IOException, ParseException
schemaFile - a file of schema objectsIOException - If the schema file can't be processedParseException - If we weren't able to parse the schemaCopyright © 2021. All rights reserved.