Class Magic


  • public final class Magic
    extends java.lang.Object
    This class is the primary class for jMimeMagic
    Version:
    $Revision: 1.8 $
    • Constructor Summary

      Constructors 
      Constructor Description
      Magic()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static void addHint​(java.lang.String extension, MagicMatcher matcher)
      Add a hint to use the specified matcher for the given extension
      static MagicMatch getMagicMatch​(byte[] data)
      Get a match from a stream of data.
      static MagicMatch getMagicMatch​(byte[] data, boolean onlyMimeMatch)
      Get a match from a stream of data.
      static void initialize()
      Create a parser and initialize it.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait