FilterLZW Class FilterLZW

File: /FPDI v1/filters/FilterLZW.php

Class hierarchy

Summary

Properties

$_andTable

protected FilterLZW::$_andTable = array(...)

$_bitPointer

protected FilterLZW::$_bitPointer

$_bitsToGet

protected FilterLZW::$_bitsToGet = 9

$_bytePointer

protected FilterLZW::$_bytePointer

$_data

protected FilterLZW::$_data

$_dataLength

protected FilterLZW::$_dataLength = 0

$_nextBits

protected FilterLZW::$_nextBits = 0

$_nextData

protected FilterLZW::$_nextData = 0

$_sTable

protected FilterLZW::$_sTable = array()

$_tIdx

protected FilterLZW::$_tIdx


Methods

_addStringToTable()

protected FilterLZW::_addStringToTable (
$oldString [, $newString = '' ]
): void

Add a new string to the string table.

Parameters
$oldString
 
$newString
 

_getNextCode()

protected FilterLZW::_getNextCode (
void
): int

Returns the next 9, 10, 11 or 12 bits

_initsTable()

protected FilterLZW::_initsTable (
void
): void

Initialize the string table.

decode()

public FilterLZW::decode (
string $data
): string

Decodes LZW compressed data.

Parameters
$data : string

The compressed data.

Exceptions

Throws Exception

encode()

public FilterLZW::encode (
string $in
): string

NOT IMPLEMENTED

Parameters
$in : string
 
Exceptions

Throws LogicException