Package com.drew.imaging.riff
Class RiffTypeChecker
- java.lang.Object
-
- com.drew.imaging.riff.RiffTypeChecker
-
- All Implemented Interfaces:
TypeChecker
public class RiffTypeChecker extends java.lang.Object implements TypeChecker
-
-
Constructor Summary
Constructors Constructor Description RiffTypeChecker()
-
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.
-
-
-
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
-
-