com.lowagie.text.rtf.document

Class RtfCodePage

public class RtfCodePage extends RtfElement implements RtfExtendedElement

The RtfCodePage class allows different code pages to be used in the rtf document. Currently always ansi / ansicpg1252 Version: $Id: RtfCodePage.java,v 1.17 2006/09/14 23:10:55 xlv Exp $

Author: Mark Hall (mhall@edu.uni-klu.ac.at)

Field Summary
static byte[]ANSI
Constant for ansi encoded rtf documents
static byte[]ANSI_CODEPAGE
Constant for the ansi codepage
Constructor Summary
RtfCodePage(RtfDocument doc)
Construct an RtfCodePage
Method Summary
byte[]writeDefinition()
Writes the selected codepage to a byte array

Field Detail

ANSI

private static final byte[] ANSI
Constant for ansi encoded rtf documents

ANSI_CODEPAGE

private static final byte[] ANSI_CODEPAGE
Constant for the ansi codepage

Constructor Detail

RtfCodePage

public RtfCodePage(RtfDocument doc)
Construct an RtfCodePage

Parameters: doc The RtfDocument this RtfCodePage belongs to

Method Detail

writeDefinition

public byte[] writeDefinition()
Writes the selected codepage to a byte array

Returns: Byte array with the current codepage