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 Type
    Method
    Description
    checkType(byte[] bytes)
    Returns the file type identified within 'bytes', otherwise 'Unknown'.
    int
    Gets 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

      FileType checkType(byte[] bytes)
      Returns the file type identified within 'bytes', otherwise 'Unknown'.