|
||||||||||
| 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.Builder
public abstract class Builder
This class provides an interface for building database instances.
The specified Parser sends events to this class whenever nodes
are to be added or closed. The builder implementation decides whether
the nodes are stored on disk or kept in memory.
| Field Summary |
|---|
| Fields inherited from class org.basex.core.Progress |
|---|
listen, updating |
| Method Summary | |
|---|---|
abstract Data |
build()
Builds the database. |
abstract void |
close()
Closes open references. |
void |
comment(byte[] value)
Stores a comment. |
java.lang.String |
det()
Returns short information on this process. |
void |
emptyElem(byte[] nm,
Atts att)
Stores an empty element. |
void |
encoding(java.lang.String enc)
Sets the document encoding. |
void |
endDoc()
Closes a document node. |
void |
endElem()
Closes an element. |
void |
pi(byte[] pi)
Stores a processing instruction. |
double |
prog()
Returns a progress value (0 - 1). |
void |
startDoc(byte[] value)
Opens a document node. |
void |
startElem(byte[] nm,
Atts att)
Opens a new element node. |
void |
startNS(byte[] pref,
byte[] uri)
Adds a new namespace; called by the building instance. |
void |
text(byte[] value)
Stores a text node. |
| 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 |
| Method Detail |
|---|
public final void startDoc(byte[] value)
throws java.io.IOException
value - document name
java.io.IOException - I/O exception
public final void endDoc()
throws java.io.IOException
java.io.IOException - I/O exception
public final void startNS(byte[] pref,
byte[] uri)
pref - the namespace prefixuri - namespace uri
public final void startElem(byte[] nm,
Atts att)
throws java.io.IOException
nm - tag nameatt - attributes
java.io.IOException - I/O exception
public final void emptyElem(byte[] nm,
Atts att)
throws java.io.IOException
nm - tag nameatt - attributes
java.io.IOException - I/O exception
public final void endElem()
throws java.io.IOException
java.io.IOException - I/O exception
public final void text(byte[] value)
throws java.io.IOException
value - text value
java.io.IOException - I/O exception
public final void comment(byte[] value)
throws java.io.IOException
value - comment text
java.io.IOException - I/O exception
public final void pi(byte[] pi)
throws java.io.IOException
pi - processing instruction name and value
java.io.IOException - I/O exceptionpublic final void encoding(java.lang.String enc)
enc - encodingpublic final java.lang.String det()
Progress
public final double prog()
Progress
public abstract Data build()
throws java.io.IOException
java.io.IOException - I/O exception
public abstract void close()
throws java.io.IOException
java.io.IOException - I/O exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||