intarsys runtime library

de.intarsys.tools.file
Class MagicFileNumberTest.Type

java.lang.Object
  extended by de.intarsys.tools.file.MagicFileNumberTest.Type
Enclosing class:
MagicFileNumberTest

public static class MagicFileNumberTest.Type
extends Object


Constructor Summary
MagicFileNumberTest.Type(String suffix, byte[] magic)
           
 
Method Summary
 String getKey()
           
 byte[] getMagicBytes()
           
 String getSuffix()
           
 boolean matches(IRandomAccess data)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MagicFileNumberTest.Type

public MagicFileNumberTest.Type(String suffix,
                                byte[] magic)
Method Detail

getKey

public String getKey()

getMagicBytes

public byte[] getMagicBytes()

getSuffix

public String getSuffix()

matches

public boolean matches(IRandomAccess data)
                throws IOException
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object

intarsys runtime library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.