Class GifHeaderParser


  • public class GifHeaderParser
    extends java.lang.Object
    A class responsible for creating GifHeaders from data representing animated GIFs.
    See Also:
    GIF 89a Specification
    • Constructor Detail

      • GifHeaderParser

        public GifHeaderParser()
    • Method Detail

      • setData

        public GifHeaderParser setData​(@NonNull
                                       java.nio.ByteBuffer data)
      • clear

        public void clear()
      • parseHeader

        @NonNull
        public GifHeader parseHeader()
      • isAnimated

        public boolean isAnimated()
        Determines if the GIF is animated by trying to read in the first 2 frames This method re-parses the data even if the header has already been read.