org.semanticdesktop.aperture.mime.identifier.magic
Class MagicNumber

java.lang.Object
  extended by org.semanticdesktop.aperture.mime.identifier.magic.MagicNumber

public class MagicNumber
extends Object


Constructor Summary
MagicNumber(byte[] magicBytes, int offset)
           
 
Method Summary
 byte[] getMagicBytes()
           
 int getMinimumLength()
           
 int getOffset()
           
 boolean matches(byte[] bytes, int skippedLeadingBytes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MagicNumber

public MagicNumber(byte[] magicBytes,
                   int offset)
Method Detail

getMagicBytes

public byte[] getMagicBytes()

getOffset

public int getOffset()

getMinimumLength

public int getMinimumLength()

matches

public boolean matches(byte[] bytes,
                       int skippedLeadingBytes)


Copyright © 2010 Aperture Development Team. All Rights Reserved.