public final class RtfStringConverter extends Object
Converts java Strings according to RTF conventions.
This work was authored by Bertrand Delacretaz (bdelacretaz@codeconsult.ch).
Modifier and Type | Method and Description |
---|---|
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
|
public static RtfStringConverter getInstance()
public void writeRtfString(Writer w, String str) throws IOException
w
- Writerstr
- String to be writtenIOException
- for I/O problemsCopyright © 2025 Apache Software Foundation. All rights reserved.