Method from org.xml.sax.helpers.XMLFilterImpl Detail: |
public void characters(char[] ch,
int start,
int length) throws SAXException {
if (contentHandler != null) {
contentHandler.characters(ch, start, length);
}
}
Filter a character data event. |
public void endDocument() throws SAXException {
if (contentHandler != null) {
contentHandler.endDocument();
}
}
Filter an end document event. |
public void endElement(String uri,
String localName,
String qName) throws SAXException {
if (contentHandler != null) {
contentHandler.endElement(uri, localName, qName);
}
}
Filter an end element event. |
public void endPrefixMapping(String prefix) throws SAXException {
if (contentHandler != null) {
contentHandler.endPrefixMapping(prefix);
}
}
Filter an end Namespace prefix mapping event. |
public void error(SAXParseException e) throws SAXException {
if (errorHandler != null) {
errorHandler.error(e);
}
}
|
public void fatalError(SAXParseException e) throws SAXException {
if (errorHandler != null) {
errorHandler.fatalError(e);
}
}
Filter a fatal error event. |
public ContentHandler getContentHandler() {
return contentHandler;
}
Get the content event handler. |
public DTDHandler getDTDHandler() {
return dtdHandler;
}
Get the current DTD event handler. |
public EntityResolver getEntityResolver() {
return entityResolver;
}
Get the current entity resolver. |
public ErrorHandler getErrorHandler() {
return errorHandler;
}
Get the current error event handler. |
public boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException {
if (parent != null) {
return parent.getFeature(name);
} else {
throw new SAXNotRecognizedException("Feature: " + name);
}
}
|
public XMLReader getParent() {
return parent;
}
|
public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException {
if (parent != null) {
return parent.getProperty(name);
} else {
throw new SAXNotRecognizedException("Property: " + name);
}
}
Look up the value of a property. |
public void ignorableWhitespace(char[] ch,
int start,
int length) throws SAXException {
if (contentHandler != null) {
contentHandler.ignorableWhitespace(ch, start, length);
}
}
Filter an ignorable whitespace event. |
public void notationDecl(String name,
String publicId,
String systemId) throws SAXException {
if (dtdHandler != null) {
dtdHandler.notationDecl(name, publicId, systemId);
}
}
Filter a notation declaration event. |
public void parse(InputSource input) throws SAXException, IOException {
setupParse();
parent.parse(input);
}
|
public void parse(String systemId) throws SAXException, IOException {
parse(new InputSource(systemId));
}
|
public void processingInstruction(String target,
String data) throws SAXException {
if (contentHandler != null) {
contentHandler.processingInstruction(target, data);
}
}
Filter a processing instruction event. |
public InputSource resolveEntity(String publicId,
String systemId) throws SAXException, IOException {
if (entityResolver != null) {
return entityResolver.resolveEntity(publicId, systemId);
} else {
return null;
}
}
Filter an external entity resolution. |
public void setContentHandler(ContentHandler handler) {
contentHandler = handler;
}
Set the content event handler. |
public void setDTDHandler(DTDHandler handler) {
dtdHandler = handler;
}
Set the DTD event handler. |
public void setDocumentLocator(Locator locator) {
this.locator = locator;
if (contentHandler != null) {
contentHandler.setDocumentLocator(locator);
}
}
Filter a new document locator event. |
public void setEntityResolver(EntityResolver resolver) {
entityResolver = resolver;
}
|
public void setErrorHandler(ErrorHandler handler) {
errorHandler = handler;
}
Set the error event handler. |
public void setFeature(String name,
boolean value) throws SAXNotRecognizedException, SAXNotSupportedException {
if (parent != null) {
parent.setFeature(name, value);
} else {
throw new SAXNotRecognizedException("Feature: " + name);
}
}
|
public void setParent(XMLReader parent) {
this.parent = parent;
}
Set the parent reader.
This is the XMLReader from which
this filter will obtain its events and to which it will pass its
configuration requests. The parent may itself be another filter.
If there is no parent reader set, any attempt to parse
or to set or get a feature or property will fail. |
public void setProperty(String name,
Object value) throws SAXNotRecognizedException, SAXNotSupportedException {
if (parent != null) {
parent.setProperty(name, value);
} else {
throw new SAXNotRecognizedException("Property: " + name);
}
}
|
public void skippedEntity(String name) throws SAXException {
if (contentHandler != null) {
contentHandler.skippedEntity(name);
}
}
Filter a skipped entity event. |
public void startDocument() throws SAXException {
if (contentHandler != null) {
contentHandler.startDocument();
}
}
Filter a start document event. |
public void startElement(String uri,
String localName,
String qName,
Attributes atts) throws SAXException {
if (contentHandler != null) {
contentHandler.startElement(uri, localName, qName, atts);
}
}
Filter a start element event. |
public void startPrefixMapping(String prefix,
String uri) throws SAXException {
if (contentHandler != null) {
contentHandler.startPrefixMapping(prefix, uri);
}
}
Filter a start Namespace prefix mapping event. |
public void unparsedEntityDecl(String name,
String publicId,
String systemId,
String notationName) throws SAXException {
if (dtdHandler != null) {
dtdHandler.unparsedEntityDecl(name, publicId, systemId,
notationName);
}
}
Filter an unparsed entity declaration event. |
public void warning(SAXParseException e) throws SAXException {
if (errorHandler != null) {
errorHandler.warning(e);
}
}
|