public static interface

ImageFormat.FormatChecker

com.facebook.imageformat.ImageFormat.FormatChecker
Known Indirect Subclasses

Summary

Public Methods
abstract ImageFormat determineFormat(byte[] headerBytes, int headerSize)
Returns an ImageFormat if the checker is able to determine the format or null otherwise.
abstract int getHeaderSize()
Get the number of header bytes the format checker requires

Public Methods

public abstract ImageFormat determineFormat (byte[] headerBytes, int headerSize)

Returns an ImageFormat if the checker is able to determine the format or null otherwise.

Parameters
headerBytes the header bytes to check
headerSize the size of the header in bytes
Returns
  • the image format or null if unknown

public abstract int getHeaderSize ()

Get the number of header bytes the format checker requires

Returns
  • the number of header bytes needed