|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cete.dynamicpdf.text.Encoder
public abstract class Encoder
Represents the base class from which encoders are derived.
Licensing:
This class is a DynamicPDF Generator Community Edition feature.
Constructor Summary | |
---|---|
protected |
Encoder(boolean spaceIs0x20)
Initializes a new instance of the Encoder class. |
Method Summary | |
---|---|
void |
drawEncoding(DocumentWriter writer)
Draws the encoding to the given DocumentWriter object. |
abstract byte[] |
encode(FontSubsetter subsetter,
char[] text,
int start,
int length,
boolean rightToLeft)
Encodes the specified text. |
static SingleByteEncoder |
getBaltic()
Gets the Baltic encoder. |
static SingleByteEncoder |
getCentralEurope()
Gets the central Europe encoder. |
static SingleByteEncoder |
getLatin1()
Gets the Latin 1 encoder. |
static SingleByteEncoder |
getLatin2()
Gets the Latin 2 (WINANSI) encoder. |
static SingleByteEncoder |
getLatin9()
Gets the Latin 9 encoder. |
boolean |
getSpaceIs0x20()
Gets a value indicating if the encoder uses a single byte 0x20 value for spaces. |
static SingleByteEncoder |
getTurkish()
Gets the Turkish encoder. |
static Encoder |
getUnicode()
Gets the Unicode encoder. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Encoder(boolean spaceIs0x20)
Encoder
class.
spaceIs0x20
- booleanMethod Detail |
---|
public abstract byte[] encode(FontSubsetter subsetter, char[] text, int start, int length, boolean rightToLeft)
subsetter
- FontSubsetter to use while encoding the text.text
- char[] text array to use for the encoding.start
- int start index in the text array.length
- int length of text to encode.rightToLeft
- boolean which specifies if the text should be encoded
right to left.
FontSubsetter
public void drawEncoding(DocumentWriter writer)
DocumentWriter
object.
writer
- DocumentWriter object to receive the encoding's output.DocumentWriter
public boolean getSpaceIs0x20()
public static SingleByteEncoder getCentralEurope()
public static SingleByteEncoder getLatin1()
public static SingleByteEncoder getTurkish()
public static SingleByteEncoder getBaltic()
public static SingleByteEncoder getLatin2()
public static SingleByteEncoder getLatin9()
public static Encoder getUnicode()
|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |