Class QuickTimeTypeChecker

  • All Implemented Interfaces:
    TypeChecker

    public class QuickTimeTypeChecker
    extends java.lang.Object
    implements TypeChecker
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.HashMap<java.lang.String,​FileType> _ftypMap  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      FileType checkType​(byte[] bytes)
      Returns the file type identified within 'bytes', otherwise 'Unknown'.
      int getByteCount()
      Gets the number of bytes this type checker needs in order to identify its file type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • _ftypMap

        private static final java.util.HashMap<java.lang.String,​FileType> _ftypMap
    • Constructor Detail

      • QuickTimeTypeChecker

        public QuickTimeTypeChecker()
    • Method Detail

      • getByteCount

        public int getByteCount()
        Description copied from interface: TypeChecker
        Gets the number of bytes this type checker needs in order to identify its file type.
        Specified by:
        getByteCount in interface TypeChecker
      • checkType

        public FileType checkType​(byte[] bytes)
        Description copied from interface: TypeChecker
        Returns the file type identified within 'bytes', otherwise 'Unknown'.
        Specified by:
        checkType in interface TypeChecker