| Constructor and Description |
|---|
MemBuilder(java.lang.String nm,
Parser parse)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
MemData |
build()
Builds the database by running the specified parser.
|
static MemData |
build(Parser parser)
Builds the main memory database instance without database name.
|
static MemData |
build(java.lang.String name,
Parser parser)
Builds a main memory database instance.
|
void |
close()
Closes open references.
|
protected void |
setSize(int pre,
int size)
Stores a size value to the specified table position.
|
comment, det, emptyElem, encoding, endDoc, endElem, pi, prog, startDoc, startElem, startNS, text, titabort, checkStop, detail, progress, progress, startTimeout, stop, stopTimeout, titlepublic MemBuilder(java.lang.String nm,
Parser parse)
nm - name of databaseparse - parserpublic static MemData build(Parser parser) throws java.io.IOException
parser - parserjava.io.IOException - I/O exceptionpublic static MemData build(java.lang.String name, Parser parser) throws java.io.IOException
name - name of databaseparser - parserjava.io.IOException - I/O exceptionpublic MemData build() throws java.io.IOException
Builderpublic void close()
throws java.io.IOException
Builderprotected void addDoc(byte[] value)
Builderprotected void addElem(int dist,
int nm,
int asize,
int uri,
boolean ne)
BuilderBuilder.setSize(int, int) must
be called to set the final size value.protected void addAttr(int nm,
byte[] value,
int dist,
int uri)
Builderprotected void addText(byte[] value,
int dist,
byte kind)
Builder