Views
Foundation Package API Reference Guide
Product Documentation:
Views Documentation Home
List of all members | Public Member Functions
IlvASCII85Encoder Class Reference

ASCII85 encoder class. More...

#include <ilviews/util/psencode.h>

Inheritance diagram for IlvASCII85Encoder:
IlvPostScriptEncoder

Public Member Functions

 IlvASCII85Encoder (std::ostream *stream=0)
 Initializes a new IlvASCII85Encoder instance. More...
 
virtual void consumeByte (IlUChar byte)
 Consumes a byte. More...
 
virtual void flush ()
 Flushes the processed data to the output.
 
virtual const char * getPostScriptDecoderName () const
 Returns a string containing the PostScript decoding filter name. More...
 
virtual void init ()
 Initializes or reinitializes the instance.
 
- Public Member Functions inherited from IlvPostScriptEncoder
virtual void consumeBytes (IlUInt count, IlUChar const *bytes)
 Consumes an array of bytes. More...
 
virtual void emitByte (IlUChar byte)
 Emits a byte. More...
 
virtual void emitBytes (IlUInt count, IlUChar const *bytes)
 Emits an array of bytes. More...
 
IlvPostScriptEncodergetEmitter () const
 Return the emitter. More...
 
std::ostream * getStream () const
 Return the stream used by this instance. More...
 
void setEmitter (IlvPostScriptEncoder *emitter)
 Sets the emitter for this encoder. More...
 
virtual void setStream (std::ostream *stream)
 Sets the output stream used by this instance. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from IlvPostScriptEncoder
static IlString GetFullDecoderString (const IlvPostScriptEncoder *pse)
 Returns the full string for an encoder. More...
 
- Protected Member Functions inherited from IlvPostScriptEncoder
 IlvPostScriptEncoder (std::ostream *stream=0)
 Initializes a new instance IlvPostScriptEncoder instance. More...
 

Detailed Description

ASCII85 encoder class.

Library: xviews or winviews or mviews (mutually exclusive)

This class allows you to encode binary data to data in ASCII characters representation. For every 4 bytes of input data, 5 bytes are generated. This encoding uses an ASCII 85 base, generating characters in the range ! through u.

See also
IlvPostScriptEncoder, IlvASCIIHexEncoder, IlvRunLengthEncoder, IlvPSDevice, IlvPSColorDevice.

Constructor & Destructor Documentation

◆ IlvASCII85Encoder()

IlvASCII85Encoder::IlvASCII85Encoder ( std::ostream *  stream = 0)

Initializes a new IlvASCII85Encoder instance.

Parameters
streamThe output stream used by this instance.

Member Function Documentation

◆ consumeByte()

virtual void IlvASCII85Encoder::consumeByte ( IlUChar  byte)
virtual

Consumes a byte.

Parameters
byteThe received byte.

Implements IlvPostScriptEncoder.

◆ getPostScriptDecoderName()

virtual const char* IlvASCII85Encoder::getPostScriptDecoderName ( ) const
virtual

Returns a string containing the PostScript decoding filter name.

Returns
The string "/ASCII85Decode".

Implements IlvPostScriptEncoder.