Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

LZWStream Class Reference

#include </home/clem/local/src/opie/noncore/unsupported/qpdf/xpdf/Stream.h>

Inheritance diagram for LZWStream:

Inheritance graph
[legend]
Collaboration diagram for LZWStream:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LZWStream (Stream *strA, int predictor, int columns, int colors, int bits, int earlyA)
virtual ~LZWStream ()
virtual StreamKind getKind ()
virtual void reset ()
virtual int getChar ()
virtual int lookChar ()
virtual int getRawChar ()
virtual GStringgetPSFilter (char *indent)
virtual GBool isBinary (GBool last=gTrue)

Private Member Functions

void dumpFile (FILE *f)
int getCode ()
GBool fillBuf ()

Private Attributes

StreamPredictorpred
int early
FILE * zPipe
GStringzName
int inputBuf
int inputBits
int inCodeBits
char buf [256]
char * bufPtr
char * bufEnd

Constructor & Destructor Documentation

LZWStream::LZWStream Stream strA,
int  predictor,
int  columns,
int  colors,
int  bits,
int  earlyA
 

Definition at line 963 of file Stream.cc.

References buf, bufEnd, bufPtr, early, NULL, pred, and zPipe.

LZWStream::~LZWStream  )  [virtual]
 

Definition at line 976 of file Stream.cc.

References GString::getCString(), NULL, pred, FilterStream::str, zName, and zPipe.


Member Function Documentation

void LZWStream::dumpFile FILE *  f  )  [private]
 

Definition at line 1097 of file Stream.cc.

References early, getCode(), gFalse, gTrue, i, inCodeBits, inputBits, inputBuf, Stream::reset(), and FilterStream::str.

Referenced by reset().

GBool LZWStream::fillBuf  )  [private]
 

Definition at line 1235 of file Stream.cc.

References buf, bufEnd, bufPtr, GString::getCString(), gFalse, NULL, zName, and zPipe.

Referenced by getChar(), getRawChar(), and lookChar().

int LZWStream::getChar  )  [virtual]
 

Implements Stream.

Definition at line 993 of file Stream.cc.

References bufEnd, bufPtr, fillBuf(), StreamPredictor::getChar(), and pred.

int LZWStream::getCode  )  [private]
 

Definition at line 1220 of file Stream.cc.

References code, Stream::getChar(), inCodeBits, inputBits, inputBuf, and FilterStream::str.

Referenced by dumpFile().

virtual StreamKind LZWStream::getKind  )  [inline, virtual]
 

Implements Stream.

Definition at line 410 of file Stream.h.

References strLZW.

GString * LZWStream::getPSFilter char *  indent  )  [virtual]
 

Reimplemented from Stream.

Definition at line 1255 of file Stream.cc.

References GString::append(), Stream::getPSFilter(), NULL, pred, s, and FilterStream::str.

int LZWStream::getRawChar  )  [virtual]
 

Reimplemented from Stream.

Definition at line 1007 of file Stream.cc.

References bufEnd, bufPtr, and fillBuf().

GBool LZWStream::isBinary GBool  last = gTrue  )  [virtual]
 

Implements Stream.

Definition at line 1268 of file Stream.cc.

References gTrue, Stream::isBinary(), and FilterStream::str.

int LZWStream::lookChar  )  [virtual]
 

Implements Stream.

Definition at line 1000 of file Stream.cc.

References bufEnd, bufPtr, fillBuf(), StreamPredictor::lookChar(), and pred.

void LZWStream::reset  )  [virtual]
 

Implements Stream.

Definition at line 1011 of file Stream.cc.

References GString::append(), buf, bufEnd, bufPtr, GString::del(), dumpFile(), error(), f, GString::getCString(), GString::getLength(), FilterStream::getPos(), gTrue, NULL, openTempFile(), POPEN_READ_MODE, uncompressCmd, zName, and zPipe.


Member Data Documentation

char LZWStream::buf[256] [private]
 

Definition at line 427 of file Stream.h.

Referenced by fillBuf(), LZWStream(), and reset().

char* LZWStream::bufEnd [private]
 

Definition at line 429 of file Stream.h.

Referenced by fillBuf(), getChar(), getRawChar(), lookChar(), LZWStream(), and reset().

char* LZWStream::bufPtr [private]
 

Definition at line 428 of file Stream.h.

Referenced by fillBuf(), getChar(), getRawChar(), lookChar(), LZWStream(), and reset().

int LZWStream::early [private]
 

Definition at line 421 of file Stream.h.

Referenced by dumpFile(), and LZWStream().

int LZWStream::inCodeBits [private]
 

Definition at line 426 of file Stream.h.

Referenced by dumpFile(), and getCode().

int LZWStream::inputBits [private]
 

Definition at line 425 of file Stream.h.

Referenced by dumpFile(), and getCode().

int LZWStream::inputBuf [private]
 

Definition at line 424 of file Stream.h.

Referenced by dumpFile(), and getCode().

StreamPredictor* LZWStream::pred [private]
 

Definition at line 420 of file Stream.h.

Referenced by getChar(), getPSFilter(), lookChar(), LZWStream(), and ~LZWStream().

GString* LZWStream::zName [private]
 

Definition at line 423 of file Stream.h.

Referenced by fillBuf(), reset(), and ~LZWStream().

FILE* LZWStream::zPipe [private]
 

Definition at line 422 of file Stream.h.

Referenced by fillBuf(), LZWStream(), reset(), and ~LZWStream().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:39:11 2005 for OPIE by  doxygen 1.4.2