Package org.ametys.cms.data
Class RichTextImportMetadataHandlerFactory.RichTextImportMetadataHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.ametys.cms.data.RichTextImportMetadataHandlerFactory.RichTextImportMetadataHandler
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
- Enclosing class:
- RichTextImportMetadataHandlerFactory
public class RichTextImportMetadataHandlerFactory.RichTextImportMetadataHandler
extends DefaultHandler
This transformer imports the rich text metadata (attachments, semantic annotations, ...) from docbook.
-
Constructor Summary
ConstructorDescriptionRichTextImportMetadataHandler
(RichText richText, Map<String, InputStream> files) Creates a handler to import the rich text's metadata -
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.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
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
-
RichTextImportMetadataHandler
Creates a handler to import the rich text's metadata- Parameters:
richText
- the rich textfiles
- the attachments of this rich text
-
-
Method Details
-
startDocument
- Specified by:
startDocument
in interfaceContentHandler
- Overrides:
startDocument
in classDefaultHandler
- Throws:
SAXException
-
startElement
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
characters
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Throws:
SAXException
-