public class GifHeaderParser
extends java.lang.Object
GifHeader
s from data
representing animated GIFs.Constructor and Description |
---|
GifHeaderParser() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
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.
|
GifHeader |
parseHeader() |
GifHeaderParser |
setData(byte[] data) |
GifHeaderParser |
setData(java.nio.ByteBuffer data) |
public GifHeaderParser setData(@NonNull java.nio.ByteBuffer data)
public GifHeaderParser setData(@Nullable byte[] data)
public void clear()
@NonNull public GifHeader parseHeader()
public boolean isAnimated()