Package com.drew.imaging
Interface TypeChecker
- All Known Implementing Classes:
MpegAudioTypeChecker,QuickTimeTypeChecker,RiffTypeChecker
public interface TypeChecker
Used by
FileTypeDetector for file types that cannot be identified by a simple byte-prefix analysis.-
Method Summary
Modifier and TypeMethodDescriptioncheckType(byte[] bytes) Returns the file type identified within 'bytes', otherwise 'Unknown'.intGets the number of bytes this type checker needs in order to identify its file type.
-
Method Details
-
getByteCount
int getByteCount()Gets the number of bytes this type checker needs in order to identify its file type. -
checkType
Returns the file type identified within 'bytes', otherwise 'Unknown'.
-