Package com.drew.imaging.quicktime
Class QuickTimeTypeChecker
- java.lang.Object
-
- com.drew.imaging.quicktime.QuickTimeTypeChecker
-
- All Implemented Interfaces:
TypeChecker
public class QuickTimeTypeChecker extends java.lang.Object implements TypeChecker
-
-
Constructor Summary
Constructors Constructor Description QuickTimeTypeChecker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileTypecheckType(byte[] bytes)Returns the file type identified within 'bytes', otherwise 'Unknown'.intgetByteCount()Gets the number of bytes this type checker needs in order to identify its file type.
-
-
-
Field Detail
-
_ftypMap
private static final java.util.HashMap<java.lang.String,FileType> _ftypMap
-
-
Method Detail
-
getByteCount
public int getByteCount()
Description copied from interface:TypeCheckerGets the number of bytes this type checker needs in order to identify its file type.- Specified by:
getByteCountin interfaceTypeChecker
-
checkType
public FileType checkType(byte[] bytes)
Description copied from interface:TypeCheckerReturns the file type identified within 'bytes', otherwise 'Unknown'.- Specified by:
checkTypein interfaceTypeChecker
-
-