public class HackedTinyBuilder
extends Builder
| Modifier and Type | Field and Description |
|---|---|
private int |
currentDepth |
private boolean |
ended |
private boolean |
isIDElement |
private int |
nodeNr |
static int |
PARENT_POINTER_INTERVAL |
private int[] |
prevAtDepth |
private int[] |
siblingsAtDepth |
private int[] |
sizeParameters |
private PackedByteBuf |
textBuf |
private SubStoreWriter |
textStore |
private TinyTree |
tree |
private StructuredStore |
treeStore |
| Constructor and Description |
|---|
HackedTinyBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
attribute(int nameCode,
int typeCode,
CharSequence value,
int locationId,
int properties) |
void |
characters(CharSequence chars,
int locationId,
int properties)
Callback interface for SAX: not for application use
|
void |
close() |
void |
comment(CharSequence chars,
int locationId,
int properties)
Callback interface for SAX: not for application use
|
void |
endDocument()
Callback interface for SAX: not for application use
|
void |
endElement()
Callback interface for SAX: not for application use
|
int[] |
getSizeParameters() |
SubStoreWriter |
getTextStore() |
TinyTree |
getTree() |
StructuredStore |
getTreeStore() |
void |
namespace(int namespaceCode,
int properties) |
void |
open()
Open the event stream
|
void |
processingInstruction(String piname,
CharSequence remainder,
int locationId,
int properties)
Callback interface for SAX: not for application use
|
void |
setSizeParameters(int[] params) |
void |
setTextStore(SubStoreWriter textStore) |
void |
setTreeStore(StructuredStore treeStore) |
void |
setUnparsedEntity(String name,
String uri,
String publicId)
Set an unparsed entity in the document
|
void |
startContent() |
void |
startDocument(int properties)
Write a document node to the tree
|
void |
startElement(int nameCode,
int typeCode,
int locationId,
int properties)
Notify the start tag of an element
|
private PackedByteBuf textBuf
private StructuredStore treeStore
private SubStoreWriter textStore
public static final int PARENT_POINTER_INTERVAL
private TinyTree tree
private int currentDepth
private int nodeNr
private boolean ended
private int[] sizeParameters
private int[] prevAtDepth
private int[] siblingsAtDepth
private boolean isIDElement
public void setTreeStore(StructuredStore treeStore)
public StructuredStore getTreeStore()
public void setTextStore(SubStoreWriter textStore)
public SubStoreWriter getTextStore()
public void setSizeParameters(int[] params)
public int[] getSizeParameters()
public TinyTree getTree()
public void open()
throws XPathException
open in interface Receiveropen in class BuilderXPathExceptionpublic void startDocument(int properties)
throws XPathException
startDocument in interface ReceiverstartDocument in class BuilderXPathExceptionpublic void endDocument()
throws XPathException
endDocument in interface ReceiverendDocument in class BuilderXPathExceptionpublic void close()
throws XPathException
close in interface Receiverclose in class BuilderXPathExceptionpublic void startElement(int nameCode,
int typeCode,
int locationId,
int properties)
throws XPathException
XPathExceptionpublic void namespace(int namespaceCode,
int properties)
throws XPathException
XPathExceptionpublic void attribute(int nameCode,
int typeCode,
CharSequence value,
int locationId,
int properties)
throws XPathException
XPathExceptionpublic void startContent()
public void endElement()
throws XPathException
XPathExceptionpublic void characters(CharSequence chars,
int locationId,
int properties)
throws XPathException
XPathExceptionpublic void processingInstruction(String piname,
CharSequence remainder,
int locationId,
int properties)
throws XPathException
XPathExceptionpublic void comment(CharSequence chars,
int locationId,
int properties)
throws XPathException
XPathExceptionpublic void setUnparsedEntity(String name,
String uri,
String publicId)