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
,com.lowagie.text.RtfElementInterface
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 3126 2008-02-07 20:30:46Z hallm $
-
-
Field Summary
Fields Modifier and Type Field Description private static byte[]
ANSI
Constant for ansi encoded rtf documentsprivate static byte[]
ANSI_CODEPAGE
Constant for the ansi codepage-
Fields inherited from class com.lowagie.text.rtf.RtfElement
document, inHeader, inTable
-
Fields inherited from interface com.lowagie.text.rtf.RtfBasicElement
CLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR
-
-
Constructor Summary
Constructors Constructor Description RtfCodePage(RtfDocument doc)
Construct an RtfCodePage
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
writeContent(java.io.OutputStream out)
unusedvoid
writeDefinition(java.io.OutputStream result)
Writes the selected codepage-
Methods inherited from class com.lowagie.text.rtf.RtfElement
intToByteArray, isInTable, setInHeader, setInTable, setRtfDocument
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.lowagie.text.rtf.RtfBasicElement
setInHeader, setInTable, setRtfDocument
-
-
-
-
Constructor Detail
-
RtfCodePage
public RtfCodePage(RtfDocument doc)
Construct an RtfCodePage- Parameters:
doc
- The RtfDocument this RtfCodePage belongs to
-
-
Method Detail
-
writeContent
public void writeContent(java.io.OutputStream out) throws java.io.IOException
unused- Specified by:
writeContent
in interfaceRtfBasicElement
- Specified by:
writeContent
in classRtfElement
- Parameters:
out
- TheOutputStream
to write the content to- Throws:
java.io.IOException
-
writeDefinition
public void writeDefinition(java.io.OutputStream result) throws java.io.IOException
Writes the selected codepage- Specified by:
writeDefinition
in interfaceRtfExtendedElement
- Parameters:
result
- TheOutputStream
to write the element definition to- Throws:
java.io.IOException
-
-