| java.lang.Object de.intarsys.tools.file.MagicFileNumberTest
MagicFileNumberTest | public class MagicFileNumberTest (Code) | | |
Inner Class :public static class Type | |
MagicFileNumberTest | public MagicFileNumberTest()(Code) | | |
addType | public void addType(String fileSuffix, byte[] magicBytes)(Code) | | Parameters: fileSuffix - just the suffix without any starting suffix delimiters (e.g.:'pdf') Parameters: magicBytes - any bytes, not null or zero size |
guessFileSuffix | public String guessFileSuffix(byte[] data)(Code) | | Parameters: data - any not null or zero size data a file suffix without a delimiter (e.g.: 'pdf') ornull |
isText | public boolean isText(byte[] data)(Code) | | does the data contain only ISO-8819-x printable characters ?
|
|
|