|
||||||||||
| 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, which is used to create new databases instances.
| Field Summary | |
|---|---|
IO |
src
Source document, or null. |
| Fields inherited from class org.basex.core.Progress |
|---|
listen, updating |
| Method Summary | |
|---|---|
void |
close()
Closes the parser. |
static Parser |
emptyParser(Prop pr)
Returns a parser instance for creating empty databases. |
java.lang.String |
info()
Returns parser information. |
static Item |
item(IO in,
Prop prop,
java.lang.String type)
Returns an XQuery item for the specified content type. |
abstract void |
parse(Builder build)
Parses all nodes and sends events to the specified builder. |
static SingleParser |
singleParser(IO in,
Prop prop,
java.lang.String target)
Returns a parser instance, based on the current options. |
Parser |
target(java.lang.String path)
Sets the target path. |
static SingleParser |
xmlParser(IO in,
Prop prop)
Returns an XML parser instance. |
| Methods inherited from class org.basex.core.Progress |
|---|
checkStop, detail, listen, progress, startTimeout, stop, stopTimeout, title |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public IO src
null.
| Method Detail |
|---|
public abstract void parse(Builder build)
throws java.io.IOException
build - database builder
java.io.IOException - I/O exception
public void close()
throws java.io.IOException
java.io.IOException - I/O exceptionpublic java.lang.String info()
public Parser target(java.lang.String path)
path - target path
public static Parser emptyParser(Prop pr)
pr - database properties
public static SingleParser xmlParser(IO in,
Prop prop)
throws java.io.IOException
in - input sourceprop - database properties
java.io.IOException - I/O exception
public static SingleParser singleParser(IO in,
Prop prop,
java.lang.String target)
throws java.io.IOException
in - input sourceprop - database propertiestarget - relative path reference
java.io.IOException - I/O exception
public static Item item(IO in,
Prop prop,
java.lang.String type)
throws java.io.IOException
in - input sourceprop - database propertiestype - content type (media type)
java.io.IOException - I/O exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||