org.apache.fop.render.rtf.rtflib.rtfdoc
Class RtfStringConverter
java.lang.Object
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfStringConverter
public class RtfStringConverter
extends java.lang.Object
Converts java Strings according to RTF conventions
- Bertrand Delacretaz bdelacretaz@codeconsult.ch
String | escape(String str) - Escapes a String as required by the RTF spec.
|
static RtfStringConverter | getInstance() - use this to get an object of this class
|
void | writeRtfString(Writer w, String str) - Write given String to given Writer, converting characters as required by
RTF spec
|
escape
public String escape(String str)
Escapes a String as required by the RTF spec.
str
- String to be escaped
getInstance
public static RtfStringConverter getInstance()
use this to get an object of this class
writeRtfString
public void writeRtfString(Writer w,
String str)
throws IOException
Write given String to given Writer, converting characters as required by
RTF spec
w
- Writerstr
- String to be written
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.