Class LZWDecode
Feb 21, 2009 Legal statement on Intellectual Property from Unisys
LZW Patent Information (http://www.unisys.com/about__unisys/lzw) License Information on GIF and Other LZW-based TechnologiesUnisys U.S. LZW Patent No. 4,558,302 expired on June 20, 2003, the counterpart patents in the United Kingdom, France, Germany and Italy expired on June 18, 2004, the Japanese counterpart patents expired on June 20, 2004 and the counterpart Canadian patent expired on July 7, 2004.
Unisys Corporation holds and has patents pending on a number of improvements on the inventions claimed in the above-expired patents. Information on these improvement patents and terms under which they may be licensed can be obtained by contacting the following:
Unisys Corporation Welch Patent Licensing Department Mail Stop E8-114 Unisys Way Blue Bell, PA 19424
Via the Internet, send email to Robert.Marley@unisys.com.
Via facsimile, send inquiries to Welch Patent Licensing Department at 215-986-3090.
The above is presented for information purposes only, and is subject to change by Unisys. Additionally, this information should not be considered as legally obligating Unisys in any way with regard to license availability, or as to the terms and conditions offered for a license, or with regard to the interpretation of any license agreements. You should consult with your own legal counsel regarding your particular situation.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int
(package private) int
(package private) ByteBuffer
(package private) int
(package private) static int
(package private) byte[][]
(package private) int
(package private) static int
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
LZWDecode
(ByteBuffer buf) initialize this decoder with an array of encoded bytes -
Method Summary
Modifier and TypeMethodDescriptionprivate ByteBuffer
decode()
decode the array.static ByteBuffer
decode
(ByteBuffer buf, PDFObject params) decode an array of LZW-encoded bytes to a byte array.private int
nextCode()
get the next code from the input streamprivate void
reset the dictionary to the initial 258 entries
-
Field Details
-
buf
ByteBuffer buf -
bytepos
int bytepos -
bitpos
int bitpos -
dict
byte[][] dict -
dictlen
int dictlen -
bitspercode
int bitspercode -
STOP
static int STOP -
CLEARDICT
static int CLEARDICT
-
-
Constructor Details
-
LZWDecode
initialize this decoder with an array of encoded bytes- Parameters:
buf
- the buffer of bytes- Throws:
PDFParseException
-
-
Method Details
-
resetDict
private void resetDict()reset the dictionary to the initial 258 entries -
nextCode
private int nextCode()get the next code from the input stream -
decode
decode the array.- Returns:
- the uncompressed byte array
- Throws:
PDFParseException
-
decode
decode an array of LZW-encoded bytes to a byte array.- Parameters:
buf
- the buffer of encoded bytesparams
- parameters for the decoder (unused)- Returns:
- the decoded uncompressed bytes
- Throws:
IOException
-