Package net.ontopia.topicmaps.classify
Class XMLFormatModule
java.lang.Object
net.ontopia.topicmaps.classify.XMLFormatModule
- All Implemented Interfaces:
FormatModuleIF
- Direct Known Subclasses:
HTMLFormatModule
INTERNAL:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String[]protected byte[]protected Collection<String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected XMLReaderprotected ContentHandlergetContentHandler(TextHandlerIF handler) booleanINTERNAL: Returns true if the content of the classifiable content is considered to be of the supported format.booleanINTERNAL: Returns true if the identifier of the classifiable content is considered to be indicating the supported format.voidreadContent(ClassifiableContentIF cc, TextHandlerIF handler) INTERNAL: Reads and analyzes the classifiable content and triggers callbacks on the text handler to identify the text and the structure of the classifiable content.voidsetSkipElements(Collection<String> skipElements)
-
Field Details
-
skipElements
-
extensions
-
magicBytes
protected byte[] magicBytes
-
-
Constructor Details
-
XMLFormatModule
public XMLFormatModule()
-
-
Method Details
-
setSkipElements
-
createXMLReader
- Throws:
SAXException
-
getContentHandler
-
matchesContent
Description copied from interface:FormatModuleIFINTERNAL: Returns true if the content of the classifiable content is considered to be of the supported format.- Specified by:
matchesContentin interfaceFormatModuleIF
-
matchesIdentifier
Description copied from interface:FormatModuleIFINTERNAL: Returns true if the identifier of the classifiable content is considered to be indicating the supported format.- Specified by:
matchesIdentifierin interfaceFormatModuleIF
-
readContent
Description copied from interface:FormatModuleIFINTERNAL: Reads and analyzes the classifiable content and triggers callbacks on the text handler to identify the text and the structure of the classifiable content.- Specified by:
readContentin interfaceFormatModuleIF
-