public class GifReader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
GIF_87A_VERSION_IDENTIFIER |
private static java.lang.String |
GIF_89A_VERSION_IDENTIFIER |
Constructor and Description |
---|
GifReader() |
Modifier and Type | Method and Description |
---|---|
void |
extract(SequentialReader reader,
Metadata metadata) |
private static byte[] |
gatherBytes(SequentialReader reader) |
private static byte[] |
gatherBytes(SequentialReader reader,
int firstLength) |
private static void |
readApplicationExtensionBlock(SequentialReader reader,
int blockSizeBytes,
Metadata metadata) |
private static GifCommentDirectory |
readCommentBlock(SequentialReader reader,
int blockSizeBytes) |
private static GifControlDirectory |
readControlBlock(SequentialReader reader,
int blockSizeBytes) |
private static void |
readGifExtensionBlock(SequentialReader reader,
Metadata metadata) |
private static GifHeaderDirectory |
readGifHeader(SequentialReader reader) |
private static GifImageDirectory |
readImageBlock(SequentialReader reader) |
private static Directory |
readPlainTextBlock(SequentialReader reader,
int blockSizeBytes) |
private static void |
skipBlocks(SequentialReader reader) |
private static final java.lang.String GIF_87A_VERSION_IDENTIFIER
private static final java.lang.String GIF_89A_VERSION_IDENTIFIER
public void extract(SequentialReader reader, Metadata metadata)
private static GifHeaderDirectory readGifHeader(SequentialReader reader) throws java.io.IOException
java.io.IOException
private static void readGifExtensionBlock(SequentialReader reader, Metadata metadata) throws java.io.IOException
java.io.IOException
private static Directory readPlainTextBlock(SequentialReader reader, int blockSizeBytes) throws java.io.IOException
java.io.IOException
private static GifCommentDirectory readCommentBlock(SequentialReader reader, int blockSizeBytes) throws java.io.IOException
java.io.IOException
private static void readApplicationExtensionBlock(SequentialReader reader, int blockSizeBytes, Metadata metadata) throws java.io.IOException
java.io.IOException
private static GifControlDirectory readControlBlock(SequentialReader reader, int blockSizeBytes) throws java.io.IOException
java.io.IOException
private static GifImageDirectory readImageBlock(SequentialReader reader) throws java.io.IOException
java.io.IOException
private static byte[] gatherBytes(SequentialReader reader) throws java.io.IOException
java.io.IOException
private static byte[] gatherBytes(SequentialReader reader, int firstLength) throws java.io.IOException
java.io.IOException
private static void skipBlocks(SequentialReader reader) throws java.io.IOException
java.io.IOException