Table of Contents

Class LzwDecoder

Namespace
iTextSharp.text.pdf
Assembly
iTextSharp.LGPLv2.Core.dll

A class for performing LZW decoding.

public class LzwDecoder
Inheritance
LzwDecoder
Inherited Members

Constructors

LzwDecoder()

public LzwDecoder()

Properties

NextCode

Returns the next 9, 10, 11 or 12 bits

public int NextCode { get; }

Property Value

int

Methods

AddStringToTable(byte[])

Add a new string to the string table.

public void AddStringToTable(byte[] str)

Parameters

str byte[]

AddStringToTable(byte[], byte)

Add a new string to the string table.

public void AddStringToTable(byte[] oldstring, byte newstring)

Parameters

oldstring byte[]
newstring byte

ComposeString(byte[], byte)

Append newstring to the end of oldstring .

public static byte[] ComposeString(byte[] oldstring, byte newstring)

Parameters

oldstring byte[]
newstring byte

Returns

byte[]

Decode(byte[], Stream)

Method to decode LZW compressed data.

public void Decode(byte[] data, Stream uncompData)

Parameters

data byte[]

The compressed data.

uncompData Stream

Array to return the uncompressed data in.

InitializeStringTable()

Initialize the string table.

public void InitializeStringTable()

WriteString(byte[])

Write out the string just uncompressed.

public void WriteString(byte[] str)

Parameters

str byte[]