|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.core.Progress
org.basex.build.Parser
public abstract class Parser
This class defines a parser for creating databases from various sources.
| Field Summary | |
|---|---|
boolean |
doc
Document flag; if true, a document node is added. |
IO |
io
Input file. |
Prop |
prop
Database properties. |
| Method Summary | |
|---|---|
static Parser |
emptyParser(IO io,
Prop pr)
Returns a parser instance for creating empty databases. |
abstract void |
parse(Builder build)
Parses all nodes and sends events to the specified builder. |
static Parser |
xmlParser(IO io,
Prop prop)
Returns an XML parser instance. |
| Methods inherited from class org.basex.core.Progress |
|---|
abort, checkStop, det, detail, prog, progress, progress, stop, tit, title |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public boolean doc
public Prop prop
public IO io
| Method Detail |
|---|
public static Parser xmlParser(IO io,
Prop prop)
throws IOException
io - io referenceprop - database properties
IOException - I/O exception
public static Parser emptyParser(IO io,
Prop pr)
io - io referencepr - database properties
public abstract void parse(Builder build)
throws IOException
build - database builder
IOException - I/O exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||