APIdia Launch Partner
Top Fields Constructors Methods
com.sun.imageio.plugins.tiff

pack-priv Class TIFFLZWUtil

extends Object
Class Inheritance
Imports
java.io.IOException, javax.imageio.IIOException

Field Summary

Modifier and TypeField and Description
private static final int[]
pack-priv int
pack-priv byte[]
pack-priv int
pack-priv int
pack-priv int
pack-priv byte[]
pack-priv int
pack-priv byte[][]
pack-priv int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addStringToTable(byte[] oldString, byte newString)

Add a new string to the string table.

public void
addStringToTable(byte[] string)

Add a new string to the string table.

public byte[]
composeString(byte[] oldString, byte newString)

Append newString to the end of oldString.

public byte[]
decode(byte[] data, int predictor, int samplesPerPixel, int width, int height)

private void
ensureCapacity(int bytesToAdd)

public int
public void
initializeStringTable()

Initialize the string table.

public void
writeString(byte[] string)

Write out the string just uncompressed.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

andTableback to summary
private static final int[] andTable
bitsToGetback to summary
pack-priv int bitsToGet
dstDataback to summary
pack-priv byte[] dstData
dstIndexback to summary
pack-priv int dstIndex
nextBitsback to summary
pack-priv int nextBits
nextDataback to summary
pack-priv int nextData
srcDataback to summary
pack-priv byte[] srcData
srcIndexback to summary
pack-priv int srcIndex
stringTableback to summary
pack-priv byte[][] stringTable
tableIndexback to summary
pack-priv int tableIndex

Constructor Detail

TIFFLZWUtilback to summary
public TIFFLZWUtil()

Method Detail

addStringToTableback to summary
public void addStringToTable(byte[] oldString, byte newString)

Add a new string to the string table.

addStringToTableback to summary
public void addStringToTable(byte[] string)

Add a new string to the string table.

composeStringback to summary
public byte[] composeString(byte[] oldString, byte newString)

Append newString to the end of oldString.

decodeback to summary
public byte[] decode(byte[] data, int predictor, int samplesPerPixel, int width, int height) throws IOException
ensureCapacityback to summary
private void ensureCapacity(int bytesToAdd)
getNextCodeback to summary
public int getNextCode()
initializeStringTableback to summary
public void initializeStringTable()

Initialize the string table.

writeStringback to summary
public void writeString(byte[] string)

Write out the string just uncompressed.