com.lowagie.text.rtf.document
Class RtfCodePage
java.lang.Object
com.lowagie.text.rtf.RtfElement
com.lowagie.text.rtf.document.RtfCodePage
- All Implemented Interfaces:
- RtfBasicElement, RtfExtendedElement
- 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 |
private static byte[] |
ANSI
Constant for ansi encoded rtf documents |
private static byte[] |
ANSI_CODEPAGE
Constant for the ansi codepage |
Method Summary |
byte[] |
writeDefinition()
Writes the selected codepage to a byte array |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
RtfCodePage
public RtfCodePage(RtfDocument doc)
- Construct an RtfCodePage
- Parameters:
doc
- The RtfDocument this RtfCodePage belongs to
writeDefinition
public byte[] writeDefinition()
- Writes the selected codepage to a byte array
- Specified by:
writeDefinition
in interface RtfExtendedElement
- Returns:
- Byte array with the current codepage