public class SetContentHandler
extends org.xml.sax.helpers.DefaultHandler
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Hashtable |
namespaces |
protected java.lang.StringBuffer |
newContent |
protected XMLResource |
resource |
| Constructor and Description |
|---|
SetContentHandler(XMLResource resource) |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length)
Receive notification of character data inside an element.
|
void |
endDocument()
Receive notification of the end of the document.
|
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
Receive notification of the end of an element.
|
void |
endPrefixMapping(java.lang.String prefix)
Receive notification of the end of a Namespace mapping.
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
Receive notification of ignorable whitespace in element content.
|
void |
processingInstruction(java.lang.String target,
java.lang.String data)
Receive notification of a processing instruction.
|
void |
skippedEntity(java.lang.String name)
Receive notification of a skipped entity.
|
void |
startDocument()
Receive notification of the beginning of the document.
|
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
Receive notification of the start of an element.
|
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
Receive notification of the start of a Namespace mapping.
|
protected XMLResource resource
protected java.lang.StringBuffer newContent
protected java.util.Hashtable namespaces
public SetContentHandler(XMLResource resource)
public void startDocument()
throws org.xml.sax.SAXException
startDocument in interface org.xml.sax.ContentHandlerstartDocument in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException - Description of ExceptionContentHandler.startDocument()public void endDocument()
throws org.xml.sax.SAXException
endDocument in interface org.xml.sax.ContentHandlerendDocument in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException - Description of ExceptionContentHandler.endDocument()public void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
throws org.xml.sax.SAXException
startPrefixMapping in interface org.xml.sax.ContentHandlerstartPrefixMapping in class org.xml.sax.helpers.DefaultHandlerprefix - The Namespace prefix being declared.uri - The Namespace URI mapped to the prefix.org.xml.sax.SAXException - Description of ExceptionContentHandler.startPrefixMapping(java.lang.String, java.lang.String)public void endPrefixMapping(java.lang.String prefix)
throws org.xml.sax.SAXException
endPrefixMapping in interface org.xml.sax.ContentHandlerendPrefixMapping in class org.xml.sax.helpers.DefaultHandlerprefix - The Namespace prefix being declared.org.xml.sax.SAXException - Description of ExceptionContentHandler.endPrefixMapping(java.lang.String)public void startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
startElement in interface org.xml.sax.ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerattributes - The specified or defaulted attributes.uri - Description of ParameterlocalName - Description of ParameterqName - Description of Parameterorg.xml.sax.SAXException - Description of ExceptionContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)public void endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
endElement in interface org.xml.sax.ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandleruri - Description of ParameterlocalName - Description of ParameterqName - Description of Parameterorg.xml.sax.SAXException - Description of ExceptionContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)public void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
characters in interface org.xml.sax.ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerch - The characters.start - The start position in the character array.length - The number of characters to use from the
character array.org.xml.sax.SAXException - Description of ExceptionContentHandler.characters(char[], int, int)public void ignorableWhitespace(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
ignorableWhitespace in interface org.xml.sax.ContentHandlerignorableWhitespace in class org.xml.sax.helpers.DefaultHandlerch - The whitespace characters.start - The start position in the character array.length - The number of characters to use from the
character array.org.xml.sax.SAXException - Description of ExceptionContentHandler.ignorableWhitespace(char[], int, int)public void processingInstruction(java.lang.String target,
java.lang.String data)
throws org.xml.sax.SAXException
processingInstruction in interface org.xml.sax.ContentHandlerprocessingInstruction in class org.xml.sax.helpers.DefaultHandlertarget - The processing instruction target.data - The processing instruction data, or null if
none is supplied.org.xml.sax.SAXException - Description of ExceptionContentHandler.processingInstruction(java.lang.String, java.lang.String)public void skippedEntity(java.lang.String name)
throws org.xml.sax.SAXException
skippedEntity in interface org.xml.sax.ContentHandlerskippedEntity in class org.xml.sax.helpers.DefaultHandlername - The name of the skipped entity.org.xml.sax.SAXException - Description of ExceptionContentHandler.processingInstruction(java.lang.String, java.lang.String)