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