de.intarsys.tools.file
Class MagicFileNumberTest.Type
java.lang.Object
de.intarsys.tools.file.MagicFileNumberTest.Type
- Enclosing class:
- MagicFileNumberTest
public static class MagicFileNumberTest.Type
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MagicFileNumberTest.Type
public MagicFileNumberTest.Type(java.lang.String suffix,
byte[] magic)
getKey
public java.lang.String getKey()
getMagicBytes
public byte[] getMagicBytes()
getSuffix
public java.lang.String getSuffix()
matches
public boolean matches(IRandomAccess data)
throws java.io.IOException
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object