org.apache.fop.render.rtf.rtflib.rtfdoc

Class RtfStringConverter


public class RtfStringConverter
extends java.lang.Object

Converts java Strings according to RTF conventions
Author:
Bertrand Delacretaz bdelacretaz@codeconsult.ch

Method Summary

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

Method Details

escape

public String escape(String str)
Escapes a String as required by the RTF spec.
Parameters:
str - String to be escaped
Returns:
the escaped string

getInstance

public static RtfStringConverter getInstance()
use this to get an object of this class
Returns:
the singleton instance

writeRtfString

public void writeRtfString(Writer w,
                           String str)
            throws IOException
Write given String to given Writer, converting characters as required by RTF spec
Parameters:
w - Writer
str - String to be written

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.