|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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. |
| Method Summary | |
|---|---|
java.lang.String |
det()
Returns detailed progress information. |
static Parser |
getXMLParser(IO io)
Returns an XML parser instance. |
java.lang.String |
head()
Returns a compact description of the current progress. |
abstract void |
parse(Builder build)
Parses all nodes and sends events to the specified builder. |
double |
prog()
Returns a value from 0 to 1, representing the current progress. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public boolean doc
public IO io
| Method Detail |
|---|
public static Parser getXMLParser(IO io)
throws java.io.IOException
io - io reference
java.io.IOException - io exception
public abstract void parse(Builder build)
throws java.io.IOException
build - event listener.
java.io.IOException - I/O exceptionpublic java.lang.String head()
public java.lang.String det()
public double prog()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||