Constructor and Description |
---|
SAXBuilder() |
SAXBuilder(org.xml.sax.XMLReader saxReader) |
Modifier and Type | Method and Description |
---|---|
void |
attribute(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
java.lang.String value) |
void |
cdata(char[] buffer,
int offset,
int length) |
void |
cdata(java.lang.String text) |
void |
comment(java.lang.String data) |
void |
endDocument() |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName) |
void |
endPrefixMapping(java.lang.String prefix) |
int |
getColumnNumber()
The column number is always 0.
|
boolean |
getEscapeText() |
int |
getLineNumber()
Returns the current line.
|
java.lang.String |
getPublicId()
Don't really have a public id (?).
|
java.lang.String |
getSystemId()
Returns the current filename.
|
void |
init() |
void |
init(org.xml.sax.XMLReader saxReader) |
void |
processingInstruction(java.lang.String name,
java.lang.String data) |
void |
setContentHandler(org.xml.sax.ContentHandler handler)
Sets the SAX content handler.
|
void |
setDocumentLocator(org.xml.sax.Locator locator) |
void |
setEscapeText(boolean isEscaped) |
void |
setLocation(java.lang.String filename,
int line,
int column) |
void |
startDocument() |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
Starts the building of an element.
|
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri) |
void |
text(char[] buffer,
int offset,
int length) |
void |
text(java.lang.String text) |
public SAXBuilder()
public SAXBuilder(org.xml.sax.XMLReader saxReader)
public void init(org.xml.sax.XMLReader saxReader)
public void init()
public void setContentHandler(org.xml.sax.ContentHandler handler)
public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator
in interface XMLWriter
public void startDocument() throws java.io.IOException, org.xml.sax.SAXException
startDocument
in interface XMLWriter
java.io.IOException
org.xml.sax.SAXException
public void endDocument() throws java.io.IOException, org.xml.sax.SAXException
endDocument
in interface XMLWriter
java.io.IOException
org.xml.sax.SAXException
public void setLocation(java.lang.String filename, int line, int column)
public java.lang.String getSystemId()
getSystemId
in interface org.xml.sax.Locator
public java.lang.String getPublicId()
getPublicId
in interface org.xml.sax.Locator
public int getLineNumber()
getLineNumber
in interface org.xml.sax.Locator
public int getColumnNumber()
getColumnNumber
in interface org.xml.sax.Locator
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws java.io.IOException, org.xml.sax.SAXException
startElement
in interface XMLWriter
uri
- the element's namespace URIlocalName
- the element's local nameqName
- the element's fully qualified namejava.io.IOException
org.xml.sax.SAXException
public void startPrefixMapping(java.lang.String prefix, java.lang.String uri) throws java.io.IOException, org.xml.sax.SAXException
startPrefixMapping
in interface XMLWriter
java.io.IOException
org.xml.sax.SAXException
public void endPrefixMapping(java.lang.String prefix) throws java.io.IOException, org.xml.sax.SAXException
endPrefixMapping
in interface XMLWriter
java.io.IOException
org.xml.sax.SAXException
public void attribute(java.lang.String uri, java.lang.String localName, java.lang.String qName, java.lang.String value) throws java.io.IOException, org.xml.sax.SAXException
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws java.io.IOException, org.xml.sax.SAXException
endElement
in interface XMLWriter
java.io.IOException
org.xml.sax.SAXException
public void processingInstruction(java.lang.String name, java.lang.String data) throws java.io.IOException, org.xml.sax.SAXException
processingInstruction
in interface XMLWriter
java.io.IOException
org.xml.sax.SAXException
public void comment(java.lang.String data) throws java.io.IOException, org.xml.sax.SAXException
public boolean getEscapeText()
getEscapeText
in interface XMLWriter
public void setEscapeText(boolean isEscaped)
setEscapeText
in interface XMLWriter
public void text(java.lang.String text) throws java.io.IOException, org.xml.sax.SAXException
public void text(char[] buffer, int offset, int length) throws java.io.IOException, org.xml.sax.SAXException
public void cdata(java.lang.String text) throws java.io.IOException, org.xml.sax.SAXException