public class XMLFormatModule extends Object implements FormatModuleIF
| Modifier and Type | Field and Description |
|---|---|
protected String[] |
extensions |
protected byte[] |
magicBytes |
protected Collection<String> |
skipElements |
| Constructor and Description |
|---|
XMLFormatModule() |
| Modifier and Type | Method and Description |
|---|---|
protected XMLReader |
createXMLReader() |
protected ContentHandler |
getContentHandler(TextHandlerIF handler) |
boolean |
matchesContent(ClassifiableContentIF cc)
INTERNAL: Returns true if the content of the classifiable content
is considered to be of the supported format.
|
boolean |
matchesIdentifier(ClassifiableContentIF cc)
INTERNAL: Returns true if the identifier of the classifiable
content is considered to be indicating the supported format.
|
void |
readContent(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.
|
void |
setSkipElements(Collection<String> skipElements) |
protected Collection<String> skipElements
protected String[] extensions
protected byte[] magicBytes
public void setSkipElements(Collection<String> skipElements)
protected XMLReader createXMLReader() throws SAXException
SAXExceptionprotected ContentHandler getContentHandler(TextHandlerIF handler)
public boolean matchesContent(ClassifiableContentIF cc)
FormatModuleIFmatchesContent in interface FormatModuleIFpublic boolean matchesIdentifier(ClassifiableContentIF cc)
FormatModuleIFmatchesIdentifier in interface FormatModuleIFpublic void readContent(ClassifiableContentIF cc, TextHandlerIF handler)
FormatModuleIFreadContent in interface FormatModuleIF