public abstract class CharacterSetBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
LOG
Static logging instance
|
Modifier and Type | Method and Description |
---|---|
CharacterSet |
build(java.lang.String characterSetName,
java.lang.String codePageName,
java.lang.String encoding,
Typeface typeface,
AFPEventProducer eventProducer)
Load the font details and metrics into the CharacterSetMetric object, this will use the
actual afp code page and character set files to load the object with the necessary metrics.
|
CharacterSet |
build(java.lang.String characterSetName,
java.lang.String codePageName,
java.lang.String encoding,
Typeface typeface,
AFPResourceAccessor accessor,
AFPEventProducer eventProducer) |
CharacterSet |
buildDBCS(java.lang.String characterSetName,
java.lang.String codePageName,
java.lang.String encoding,
CharacterSetType charsetType,
AFPResourceAccessor accessor,
AFPEventProducer eventProducer)
Load the font details and metrics into the CharacterSetMetric object, this will use the
actual afp code page and character set files to load the object with the necessary metrics.
|
CharacterSet |
buildSBCS(java.lang.String characterSetName,
java.lang.String codePageName,
java.lang.String encoding,
AFPResourceAccessor accessor,
AFPEventProducer eventProducer)
Load the font details and metrics into the CharacterSetMetric object, this will use the
actual afp code page and character set files to load the object with the necessary metrics.
|
static CharacterSetBuilder |
getDoubleByteInstance()
Factory method for the double-byte (CID Keyed font (Type 0)) implementation of AFPFontReader.
|
static CharacterSetBuilder |
getSingleByteInstance()
Factory method for the single-byte implementation of AFPFontReader.
|
protected java.util.Map<java.lang.String,java.lang.String> |
loadCodePage(java.lang.String codePage,
java.lang.String encoding,
AFPResourceAccessor accessor,
AFPEventProducer eventProducer)
Load the code page information from the appropriate file.
|
public static CharacterSetBuilder getSingleByteInstance()
public static CharacterSetBuilder getDoubleByteInstance()
public CharacterSet buildSBCS(java.lang.String characterSetName, java.lang.String codePageName, java.lang.String encoding, AFPResourceAccessor accessor, AFPEventProducer eventProducer) throws java.io.IOException
characterSetName
- name of the charactersetcodePageName
- name of the code page fileencoding
- encoding nameaccessor
- used to load codepage and characterseteventProducer
- for handling AFP related eventsjava.io.IOException
- if an I/O error occurspublic CharacterSet buildDBCS(java.lang.String characterSetName, java.lang.String codePageName, java.lang.String encoding, CharacterSetType charsetType, AFPResourceAccessor accessor, AFPEventProducer eventProducer) throws java.io.IOException
characterSetName
- name of the charactersetcodePageName
- name of the code page fileencoding
- encoding namecharsetType
- the characterset typeaccessor
- used to load codepage and characterseteventProducer
- for handling AFP related eventsjava.io.IOException
- if an I/O error occurspublic CharacterSet build(java.lang.String characterSetName, java.lang.String codePageName, java.lang.String encoding, Typeface typeface, AFPEventProducer eventProducer) throws java.io.IOException
characterSetName
- the CharacterSetMetric object to populatecodePageName
- the name of the code page to useencoding
- name of the encoding in usetypeface
- base14 font nameeventProducer
- for handling AFP related eventsjava.io.IOException
- if an I/O error occurspublic CharacterSet build(java.lang.String characterSetName, java.lang.String codePageName, java.lang.String encoding, Typeface typeface, AFPResourceAccessor accessor, AFPEventProducer eventProducer) throws java.io.IOException
java.io.IOException
protected java.util.Map<java.lang.String,java.lang.String> loadCodePage(java.lang.String codePage, java.lang.String encoding, AFPResourceAccessor accessor, AFPEventProducer eventProducer) throws java.io.IOException
codePage
- the code page identifierencoding
- the encoding to use for the character decodingaccessor
- the resource accessoreventProducer
- for handling AFP related eventsjava.io.IOException
- if an I/O exception of some sort has occurred.Copyright 1999-2017 The Apache Software Foundation. All Rights Reserved.