Package org.ametys.cms.data
Class RichTextImportHandlerFactory.RichTextImportHandler
java.lang.Object
org.apache.excalibur.xml.sax.ContentHandlerProxy
org.ametys.cms.data.RichTextImportHandlerFactory.RichTextImportHandler
- All Implemented Interfaces:
ContentHandler
- Enclosing class:
- RichTextImportHandlerFactory
This transformer imports the rich text from docbook.
-
Constructor Summary
ConstructorDescriptionRichTextImportHandler
(ContentHandler contentHandler, RichText richText, Map<String, InputStream> files, Logger logger) Creates a handler proxy to import a rich text -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) void
endElement
(String uri, String loc, String raw) void
void
startElement
(String uri, String loc, String raw, Attributes attrs) Methods inherited from class org.apache.excalibur.xml.sax.ContentHandlerProxy
endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setContentHandler, setDocumentLocator, skippedEntity, startPrefixMapping
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
RichTextImportHandler
public RichTextImportHandler(ContentHandler contentHandler, RichText richText, Map<String, InputStream> files, Logger logger) Creates a handler proxy to import a rich text- Parameters:
contentHandler
- the contentHandler to pass SAX events torichText
- the rich textfiles
- the attachments of this rich textlogger
- the logger
-
-
Method Details
-
startDocument
- Specified by:
startDocument
in interfaceContentHandler
- Overrides:
startDocument
in classContentHandlerProxy
- Throws:
SAXException
-
startElement
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classContentHandlerProxy
- Throws:
SAXException
-
characters
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classContentHandlerProxy
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classContentHandlerProxy
- Throws:
SAXException
-