Package net.ontopia.topicmaps.classify
Class PlainTextFormatModule
- java.lang.Object
-
- net.ontopia.topicmaps.classify.PlainTextFormatModule
-
- All Implemented Interfaces:
FormatModuleIF
public class PlainTextFormatModule extends Object implements FormatModuleIF
INTERNAL:
-
-
Field Summary
Fields Modifier and Type Field Description protected String[]
extensions
-
Constructor Summary
Constructors Constructor Description PlainTextFormatModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Field Detail
-
extensions
protected String[] extensions
-
-
Method Detail
-
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 interfaceFormatModuleIF
-
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 interfaceFormatModuleIF
-
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 interfaceFormatModuleIF
-
-