Package 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
The RtfCodePage class allows different code pages to be used in the rtf document.
Currently always ansi / ansicpg1252
- Version:
- $Id:RtfCodePage.java 3126 2008-02-07 20:30:46Z hallm $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final byte[]Constant for ansi encoded rtf documentsprivate static final byte[]Constant for the ansi codepageFields inherited from class com.lowagie.text.rtf.RtfElement
document, inHeader, inTableFields inherited from interface com.lowagie.text.rtf.RtfBasicElement
CLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidwriteContent(OutputStream out) unusedvoidwriteDefinition(OutputStream result) Writes the selected codepageMethods inherited from class com.lowagie.text.rtf.RtfElement
intToByteArray, isInTable, setInHeader, setInTable, setRtfDocumentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.lowagie.text.rtf.RtfBasicElement
setInHeader, setInTable, setRtfDocument
-
Field Details
-
ANSI
private static final byte[] ANSIConstant for ansi encoded rtf documents -
ANSI_CODEPAGE
private static final byte[] ANSI_CODEPAGEConstant for the ansi codepage
-
-
Constructor Details
-
RtfCodePage
Construct an RtfCodePage- Parameters:
doc- The RtfDocument this RtfCodePage belongs to
-
-
Method Details
-
writeContent
unused- Specified by:
writeContentin interfaceRtfBasicElement- Specified by:
writeContentin classRtfElement- Parameters:
out- TheOutputStreamto write the content to- Throws:
IOException
-
writeDefinition
Writes the selected codepage- Specified by:
writeDefinitionin interfaceRtfExtendedElement- Parameters:
result- TheOutputStreamto write the element definition to- Throws:
IOException
-