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
public class RichTextImportHandlerFactory.RichTextImportHandler extends ContentHandlerProxy
This transformer imports the rich text from docbook.
-
-
Constructor Summary
Constructors Constructor Description RichTextImportHandler(ContentHandler contentHandler, RichText richText, Map<String,InputStream> files)Creates a handler proxy to import a rich text
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(char[] ch, int start, int length)voidendElement(String uri, String loc, String raw)voidstartDocument()voidstartElement(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
-
-
-
-
Constructor Detail
-
RichTextImportHandler
public RichTextImportHandler(ContentHandler contentHandler, RichText richText, Map<String,InputStream> files)
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 text
-
-
Method Detail
-
startDocument
public void startDocument() throws SAXException
- Specified by:
startDocumentin interfaceContentHandler- Overrides:
startDocumentin classContentHandlerProxy- Throws:
SAXException
-
startElement
public void startElement(String uri, String loc, String raw, Attributes attrs) throws SAXException
- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classContentHandlerProxy- Throws:
SAXException
-
characters
public void characters(char[] ch, int start, int length) throws SAXException
- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classContentHandlerProxy- Throws:
SAXException
-
endElement
public void endElement(String uri, String loc, String raw) throws SAXException
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classContentHandlerProxy- Throws:
SAXException
-
-