SourceForge.net Logo
aXSL API 0.1

org.axsl.psR
Interface EncodingVector

All Superinterfaces:
Encoding

public interface EncodingVector
extends Encoding

EncodingVector implementations represent what PostScript and PDF call an Encoding, that is a mapping from character to glyph index that is based on the character's location in an array (vector).

To explain the terminology used, the aXSL superinterface Encoding represents a superset of the PostScript/PDF concept, by including other encoding schemes as well, specifically CMaps.


Field Summary
 
Fields inherited from interface org.axsl.psR.Encoding
INVALID_UNICODE_CHAR
 
Method Summary
 EncodingVector bestBaseEncodingPDF()
          Method useful for determining what, if any, EncodingVector should be used as the base encoding when writing this EncodingVector in PDF.
 
Methods inherited from interface org.axsl.psR.Encoding
asPostScript, canEncode, decodeCharacter, encodeCharacter, getFirstIndex, getLastIndex, getName, isPredefinedPDF, isPredefinedPS
 

Method Detail

bestBaseEncodingPDF

public EncodingVector bestBaseEncodingPDF()
Method useful for determining what, if any, EncodingVector should be used as the base encoding when writing this EncodingVector in PDF. In PDF, an EncodingVector can be written as a set of differences from one of the standard PDF EncodingVectors. (There does not seem to be a similar capability in PostScript).

Returns:
The best base-encoding that should be used when writing this encoding to PostScript, or null if this encoding vector should be written in its entirety.

SourceForge.net Logo
aXSL API 0.1

This documentation was created September 6 2006 by The aXSL Group and may be freely copied. See license for details.