|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.core.Proc
org.basex.build.Builder
org.basex.build.EmptyBuilder
public final class EmptyBuilder
Dummy parser for parsing XML input.
Field Summary |
---|
Fields inherited from class org.basex.core.Proc |
---|
listen, updating |
Constructor Summary | |
---|---|
EmptyBuilder(IO io,
Context ctx)
Constructor. |
Method Summary | |
---|---|
protected void |
addAttr(int nm,
byte[] value,
int dist,
int uri)
Adds an attribute to the database. |
protected void |
addDoc(byte[] value)
Adds a document node to the database. |
protected void |
addElem(int dist,
int nm,
int asize,
int uri,
boolean ne)
Adds an element node to the database. |
protected void |
addText(byte[] value,
int dist,
byte kind)
Adds a text node to the database. |
Data |
build()
Builds the database. |
void |
close()
Closes open references. |
protected void |
setSize(int pre,
int size)
Stores a size value to the specified table position. |
Methods inherited from class org.basex.build.Builder |
---|
closeDoc, closeElem, comment, det, emptyElem, encoding, openDoc, openElem, pi, prog, text, tit |
Methods inherited from class org.basex.core.Proc |
---|
abort, checkStop, databases, detail, listen, proc, progress, registered, registered, startTimeout, stop, stopTimeout, title |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EmptyBuilder(IO io, Context ctx) throws java.io.IOException
io
- inputctx
- database context
java.io.IOException
- I/O exceptionMethod Detail |
---|
public Data build() throws java.io.IOException
Builder
build
in class Builder
java.io.IOException
- I/O exceptionpublic void close() throws java.io.IOException
Builder
close
in class Builder
java.io.IOException
- I/O exceptionprotected void addDoc(byte[] value) throws java.io.IOException
Builder
addDoc
in class Builder
value
- name of the document
java.io.IOException
- I/O exceptionprotected void addElem(int dist, int nm, int asize, int uri, boolean ne) throws java.io.IOException
Builder
Builder.setSize(int, int)
must
be called to set the final size value.
addElem
in class Builder
dist
- distance to parentnm
- the tag name referenceasize
- number of attributesuri
- namespace uri referencene
- namespace flag
java.io.IOException
- I/O exceptionprotected void addAttr(int nm, byte[] value, int dist, int uri) throws java.io.IOException
Builder
addAttr
in class Builder
nm
- attribute namevalue
- attribute valuedist
- distance to parenturi
- namespace uri reference
java.io.IOException
- I/O exceptionprotected void addText(byte[] value, int dist, byte kind) throws java.io.IOException
Builder
addText
in class Builder
value
- the token to be added (tag name or content)dist
- distance to parentkind
- the node kind
java.io.IOException
- I/O exceptionprotected void setSize(int pre, int size) throws java.io.IOException
Builder
setSize
in class Builder
pre
- pre referencesize
- value to be stored
java.io.IOException
- I/O exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |