|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.converter.schema.SchemaParser
public class SchemaParser
A reusable wrapper for antlr generated schema parsers.
Constructor Summary | |
---|---|
SchemaParser()
Creates a reusable instance of an SchemaParser. |
Method Summary | |
---|---|
void |
clear()
Clear the parser. |
void |
init()
Initializes a parser and its plumbing. |
void |
parse(java.io.File schemaFile)
Thread safe method parses a file of OpenLDAP schemaObject elements/objects. |
java.util.List<SchemaElement> |
parse(java.io.InputStream schemaIn,
java.io.Writer out)
Thread safe method parses a stream of OpenLDAP schemaObject elements/objects. |
java.util.List<SchemaElement> |
parse(java.lang.String schemaObject)
Thread safe method parses an OpenLDAP schemaObject element/object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SchemaParser() throws java.io.IOException
java.io.IOException
- if the pipe cannot be formedMethod Detail |
---|
public void init() throws java.io.IOException
java.io.IOException
- if a pipe cannot be formed.public void clear()
public java.util.List<SchemaElement> parse(java.lang.String schemaObject) throws java.io.IOException, java.text.ParseException
schemaObject
- the String image of a complete schema object
java.io.IOException
java.text.ParseException
public java.util.List<SchemaElement> parse(java.io.InputStream schemaIn, java.io.Writer out) throws java.io.IOException, java.text.ParseException
schemaIn
- a stream of schema objects
java.io.IOException
java.text.ParseException
public void parse(java.io.File schemaFile) throws java.io.IOException, java.text.ParseException
schemaFile
- a file of schema objects
java.io.IOException
java.text.ParseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |