public class DefaultContentHandler extends Object implements ImportContentHandler, ErrorHandler
Constructor and Description |
---|
DefaultContentHandler(ImportContentHandler targetHandler)
Construct
|
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endDocument() |
void |
endElement(String uri,
String localName,
String qName) |
void |
endPrefixMapping(String prefix) |
void |
error(SAXParseException exception) |
void |
fatalError(SAXParseException exception) |
void |
ignorableWhitespace(char[] ch,
int start,
int length) |
InputStream |
importStream(String content)
Call-back for importing content streams
|
void |
processingInstruction(String target,
String data) |
void |
setDocumentLocator(Locator locator) |
void |
setImporter(Importer importer)
Sets the Importer
|
void |
skippedEntity(String name) |
void |
startDocument() |
void |
startElement(String uri,
String localName,
String qName,
Attributes atts) |
void |
startPrefixMapping(String prefix,
String uri) |
void |
warning(SAXParseException exception) |
public DefaultContentHandler(ImportContentHandler targetHandler)
targetHandler
- ImportContentHandlerpublic void setImporter(Importer importer)
ImportContentHandler
setImporter
in interface ImportContentHandler
importer
- Importerpublic InputStream importStream(String content)
ImportContentHandler
importStream
in interface ImportContentHandler
content
- content stream identifierpublic void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
SAXException
public void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping
in interface ContentHandler
SAXException
public void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping
in interface ContentHandler
SAXException
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
SAXException
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
ignorableWhitespace
in interface ContentHandler
SAXException
public void processingInstruction(String target, String data) throws SAXException
processingInstruction
in interface ContentHandler
SAXException
public void skippedEntity(String name) throws SAXException
skippedEntity
in interface ContentHandler
SAXException
public void error(SAXParseException exception) throws SAXException
error
in interface ErrorHandler
SAXException
public void fatalError(SAXParseException exception) throws SAXException
fatalError
in interface ErrorHandler
SAXException
public void warning(SAXParseException exception) throws SAXException
warning
in interface ErrorHandler
SAXException
Copyright © 2005–2017 Alfresco Software. All rights reserved.