|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ontopia.topicmaps.classify.FormatModule
public class FormatModule
INTERNAL:
Constructor Summary | |
---|---|
FormatModule()
|
Method Summary | |
---|---|
static int |
detectCharSet(byte[] content)
|
FormatModuleIF |
detectFormat(ClassifiableContentIF cc)
|
static byte[] |
getBytes(java.lang.String s)
|
static byte[][] |
getBytes(java.lang.String[] s)
|
static java.lang.String |
getCharSetName(int charSet)
|
static int |
getOffset(int charSet)
|
boolean |
matchesContent(ClassifiableContentIF cc)
INTERNAL: Returns true if the content of the classifiable content is considered to be of the supported format. |
static boolean |
matchesExtension(java.lang.String uri,
java.lang.String[] extensions)
|
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. |
static boolean |
startsWith(byte[] content,
byte[] s)
|
static boolean |
startsWithSkipWhitespace(byte[] content,
byte[] s)
|
static boolean |
startsWithSkipWhitespace(byte[] content,
byte[][] ss)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FormatModule()
Method Detail |
---|
public boolean matchesContent(ClassifiableContentIF cc)
FormatModuleIF
matchesContent
in interface FormatModuleIF
public boolean matchesIdentifier(ClassifiableContentIF cc)
FormatModuleIF
matchesIdentifier
in interface FormatModuleIF
public void readContent(ClassifiableContentIF cc, TextHandlerIF handler)
FormatModuleIF
readContent
in interface FormatModuleIF
public FormatModuleIF detectFormat(ClassifiableContentIF cc)
public static boolean matchesExtension(java.lang.String uri, java.lang.String[] extensions)
public static java.lang.String getCharSetName(int charSet)
public static int getOffset(int charSet)
public static int detectCharSet(byte[] content)
public static byte[] getBytes(java.lang.String s)
public static byte[][] getBytes(java.lang.String[] s)
public static boolean startsWith(byte[] content, byte[] s)
public static boolean startsWithSkipWhitespace(byte[] content, byte[][] ss)
public static boolean startsWithSkipWhitespace(byte[] content, byte[] s)
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |