public class TiffStream extends Object
A new version of the ByteChunkStream. It will search for starting signatures of byte chunks and emit those chunks.
| Modifier and Type | Field and Description |
|---|---|
static byte[] |
JPEG_EOI |
static byte[] |
JPEG_SOI |
static byte[] |
TIF_SOI |
| Constructor and Description |
|---|
TiffStream(InputStream in,
int readBufferSize,
int maxResultBuffer,
boolean continuous) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getBytesRead() |
protected static int |
indexOf(byte[] buffer,
byte[] sig,
int from) |
protected int |
indexOf(byte[] sig,
int from) |
protected boolean |
isSignatureAt(byte[] sig,
int pos) |
protected static boolean |
isSignatureAt(byte[] buffer,
int pos,
byte[] sig) |
protected int |
readBytes() |
byte[] |
readNextChunk() |
public static final byte[] JPEG_SOI
public static final byte[] JPEG_EOI
public static final byte[] TIF_SOI
public TiffStream(InputStream in, int readBufferSize, int maxResultBuffer, boolean continuous)
public long getBytesRead()
public byte[] readNextChunk()
throws IOException
IOExceptionpublic void close()
protected static boolean isSignatureAt(byte[] buffer,
int pos,
byte[] sig)
pos - sig - protected static int indexOf(byte[] buffer,
byte[] sig,
int from)
sig - from - protected int indexOf(byte[] sig,
int from)
protected boolean isSignatureAt(byte[] sig,
int pos)
protected int readBytes()
throws IOException
IOExceptionCopyright © 2015. All rights reserved.