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 void
characters(char[] ch, int start, int length)
void
endElement(String uri, String loc, String raw)
void
startDocument()
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
-
-
-
-
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:
startDocument
in interfaceContentHandler
- Overrides:
startDocument
in classContentHandlerProxy
- Throws:
SAXException
-
startElement
public void startElement(String uri, String loc, String raw, Attributes attrs) throws SAXException
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classContentHandlerProxy
- Throws:
SAXException
-
characters
public void characters(char[] ch, int start, int length) throws SAXException
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classContentHandlerProxy
- Throws:
SAXException
-
endElement
public void endElement(String uri, String loc, String raw) throws SAXException
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classContentHandlerProxy
- Throws:
SAXException
-
-