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 2808 2007-05-30 10:58:16Z psoares33 $

Author: Mark Hall (mhall@edu.uni-klu.ac.at) Thomas Bickel (tmb99@inode.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[]write()
unused
voidwriteContent(OutputStream out)
unused
byte[]writeDefinition()
Writes the selected codepage to a byte array
voidwriteDefinition(OutputStream result)
Writes the selected codepage

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

write

public byte[] write()

Deprecated: replaced by writeContent

unused

writeContent

public void writeContent(OutputStream out)
unused

writeDefinition

public byte[] writeDefinition()

Deprecated: replaced by writeDefinition

Writes the selected codepage to a byte array

Returns: Byte array with the current codepage

writeDefinition

public void writeDefinition(OutputStream result)
Writes the selected codepage