Class MagicNumber


  • public class MagicNumber
    extends java.lang.Object
    Licence concern : This method is based upon Aperture MagicMimeTypeIdentifier. The code was modified at the margin to be compatible with JRE 1.4.2. Given the licence of Aperture : Open Software Licence (OSL), this modified code of Aperture classes are held at the disposal on demand at support@jalios.com Concerned classes : UtfUtil MagicNumber MagicMimeTypeIdentifier MagicString MagicNumber
    Since:
    JCMS-5.7.3
    • Constructor Summary

      Constructors 
      Constructor Description
      MagicNumber​(byte[] magicBytes, int offset)  
    • 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)