net.ontopia.topicmaps.classify
Class XMLFormatModule

java.lang.Object
  extended by net.ontopia.topicmaps.classify.XMLFormatModule
All Implemented Interfaces:
FormatModuleIF
Direct Known Subclasses:
HTMLFormatModule

public class XMLFormatModule
extends java.lang.Object
implements FormatModuleIF

INTERNAL:


Field Summary
protected  java.lang.String[] extensions
           
protected  byte[] magicBytes
           
protected  java.util.Collection skipElements
           
 
Constructor Summary
XMLFormatModule()
           
 
Method Summary
protected  org.xml.sax.XMLReader createXMLReader()
           
protected  org.xml.sax.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(java.util.Collection skipElements)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

skipElements

protected java.util.Collection skipElements

extensions

protected java.lang.String[] extensions

magicBytes

protected byte[] magicBytes
Constructor Detail

XMLFormatModule

public XMLFormatModule()
Method Detail

setSkipElements

public void setSkipElements(java.util.Collection skipElements)

createXMLReader

protected org.xml.sax.XMLReader createXMLReader()
                                         throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getContentHandler

protected org.xml.sax.ContentHandler getContentHandler(TextHandlerIF handler)

matchesContent

public boolean matchesContent(ClassifiableContentIF cc)
Description copied from interface: FormatModuleIF
INTERNAL: Returns true if the content of the classifiable content is considered to be of the supported format.

Specified by:
matchesContent in interface FormatModuleIF

matchesIdentifier

public boolean matchesIdentifier(ClassifiableContentIF cc)
Description copied from interface: FormatModuleIF
INTERNAL: Returns true if the identifier of the classifiable content is considered to be indicating the supported format.

Specified by:
matchesIdentifier in interface FormatModuleIF

readContent

public void readContent(ClassifiableContentIF cc,
                        TextHandlerIF handler)
Description copied from interface: FormatModuleIF
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.

Specified by:
readContent in interface FormatModuleIF


Copyright © 2000-2012 Ontopia.