Package 

Interface ImageFormat.FormatChecker

    • Method Summary

      Modifier and Type Method Description
      abstract int getHeaderSize() Get the number of header bytes the format checker requires
      abstract ImageFormat determineFormat(@Nonnull() Array<byte> headerBytes, int headerSize) Returns an ImageFormat if the checker is able to determine the format or nullotherwise.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getHeaderSize

         abstract int getHeaderSize()

        Get the number of header bytes the format checker requires

      • determineFormat

        @Nullable() abstract ImageFormat determineFormat(@Nonnull() Array<byte> headerBytes, int headerSize)

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

        Parameters:
        headerBytes - the header bytes to check
        headerSize - the size of the header in bytes