abstract class ImageExtractor.GifFileReader.ExtensionReader
extends java.lang.Object
Constructor and Description |
---|
ExtensionReader() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
hasSignature(byte firstByte,
byte secondByte)
Tests that the given two bytes match this extension signature.
|
abstract boolean |
skipBlock(java.io.RandomAccessFile raf)
Skip the target block of GIF data.
|
boolean |
testExtension(java.io.RandomAccessFile raf)
Tests if the following data can represent the target extension section of GIF image.
|
public abstract boolean hasSignature(byte firstByte, byte secondByte)
firstByte
- The first byte of the two bytes signaturesecondByte
- The second byte of the two bytes signaturepublic abstract boolean skipBlock(java.io.RandomAccessFile raf) throws java.io.IOException
raf
- The data represented by the random access filejava.io.IOException
- If IO error occurs during this reading operation.public boolean testExtension(java.io.RandomAccessFile raf) throws java.io.IOException
raf
- The data represented by the random access filejava.io.IOException
- If IO error occurs while reading data and moving the current file pointer.