| |
|
| java.lang.Object de.intarsys.pdf.encoding.Encoding de.intarsys.pdf.encoding.MappedEncoding
All known Subclasses: de.intarsys.pdf.encoding.MacOSRomanEncoding, de.intarsys.pdf.encoding.StandardEncoding, de.intarsys.pdf.encoding.WinAnsiEncoding, de.intarsys.pdf.encoding.MacRomanEncoding, de.intarsys.pdf.encoding.PDFDocEncoding,
MappedEncoding | public class MappedEncoding extends Encoding (Code) | | A MappedEncoding is an explicit map from a codepoint to a name (and vice
versa).
A MappedEncoding can be constructed individually (as in a DifferenceEncoding)
or be one of the predefined well known encodings that are implemented using
unique instances.
|
MappedEncoding | public MappedEncoding()(Code) | | Create a MappedEncoding
|
addEncoding | public void addEncoding(int codePoint, String name)(Code) | | When constructing manually, one can define a map from
codePoint to name with this method.
Parameters: codePoint - The codePoint from 0..255 where the character should bemapped. Parameters: name - The name of the character to be mapped. |
addEncoding | public void addEncoding(int codePoint, String name, int unicode)(Code) | | Add a known complete tuple. THis is used if we do not have a name/unicode
standard map (for example in symbolic fonts).
Parameters: codePoint - The codePoint from 0..255 where the character should bemapped. Parameters: name - The name of the character to be mapped. Parameters: unicode - The unicode value |
defineEntry | protected void defineEntry(int codePoint, int unicode, String name)(Code) | | Define an entry the establishes a relationship between byte code code
point, unicode code point and Adobe glyph name.
Parameters: codePoint - The byte code code point. Parameters: unicode - The unicode code point. Parameters: name - The Adobe glyph name. |
getByteCode | public int getByteCode(int unicode)(Code) | | |
getByteToName | protected String[] getByteToName()(Code) | | The internal representation of the map from codePoint to character name.
The internal representation of the map from codePoint tocharacter name. |
getByteToUnicode | protected int[] getByteToUnicode()(Code) | | The internal representation of the map from byte code to unicode.
The internal representation of the map from byte code to unicode. |
getNameToByte | protected Map getNameToByte()(Code) | | The internal representation of the map from names to byte value code
point.
The internal representation of the map from names to byte valuecode point. |
getUnicode | public int getUnicode(int byteValue)(Code) | | |
getUnicodeToByte | protected Map getUnicodeToByte()(Code) | | The internal representation of the map from unicode code point to byte
value code point.
The internal representation of the map from unicode code point tobyte value code point. |
getValidByteCode | public int getValidByteCode(int unicode)(Code) | | |
getValidByteCode | public int getValidByteCode(String name)(Code) | | |
|
|
|