Package net.ontopia.topicmaps.classify
Class FormatModule
java.lang.Object
net.ontopia.topicmaps.classify.FormatModule
- All Implemented Interfaces:
FormatModuleIF
INTERNAL:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intdetectCharSet(byte[] content) static byte[]static byte[][]static StringgetCharSetName(int charSet) static intgetOffset(int charSet) booleanINTERNAL: Returns true if the content of the classifiable content is considered to be of the supported format.static booleanmatchesExtension(String uri, String[] extensions) 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.static booleanstartsWith(byte[] content, byte[] s) static booleanstartsWithSkipWhitespace(byte[] content, byte[] s) static booleanstartsWithSkipWhitespace(byte[] content, byte[][] ss)
-
Field Details
-
modules
-
fallout_module
-
-
Constructor Details
-
FormatModule
public FormatModule()
-
-
Method Details
-
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
-
detectFormat
-
matchesExtension
-
getCharSetName
-
getOffset
public static int getOffset(int charSet) -
detectCharSet
public static int detectCharSet(byte[] content) -
getBytes
-
getBytes
-
startsWith
public static boolean startsWith(byte[] content, byte[] s) -
startsWithSkipWhitespace
public static boolean startsWithSkipWhitespace(byte[] content, byte[][] ss) -
startsWithSkipWhitespace
public static boolean startsWithSkipWhitespace(byte[] content, byte[] s)
-