|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrtf.RtfUtil
public class RtfUtil
Field Summary | |
---|---|
static java.lang.String |
HEADER
|
Fields inherited from interface rtf.JavaText |
---|
javaReservedWords |
Constructor Summary | |
---|---|
RtfUtil()
|
Method Summary | |
---|---|
static java.lang.String |
formatCurlyBracesAndBackslashes(java.lang.String s)
Returns a string with curly braces and backslashes in RTF format. |
static java.lang.String |
getBold(java.lang.String s)
Returns a string in bold RTF format. |
static java.lang.String |
getItalic(java.lang.String s)
Returns a string in italic RTF format. |
static java.lang.String |
getPar()
Returns a paragraph break in RTF format. |
static java.lang.String |
getPlain(java.lang.String s)
Returns a string in plain RTF format. |
static java.lang.String |
getTab()
Returns a tab in RTF format. |
void |
javaToRtf(java.io.BufferedReader br,
java.io.BufferedWriter _bw)
Converts a Java source file to a RTF file. |
void |
javaToRtf(java.io.File javaFile,
java.io.File rtfFile)
Converts a Java source file to a RTF file. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String HEADER
Constructor Detail |
---|
public RtfUtil()
Method Detail |
---|
public void javaToRtf(java.io.BufferedReader br, java.io.BufferedWriter _bw)
br
- is the BufferedReader to read from._bw
- is the BufferedWriter to write to.public void javaToRtf(java.io.File javaFile, java.io.File rtfFile)
javaFile
- is the Java source file to convert.rtfFile
- is the RTF file to convert to.public static java.lang.String getItalic(java.lang.String s)
s
- is the string to format.
public static java.lang.String getBold(java.lang.String s)
s
- is the string to format.
public static java.lang.String getPlain(java.lang.String s)
s
- is the string to format.
public static java.lang.String getPar()
public static java.lang.String getTab()
public static java.lang.String formatCurlyBracesAndBackslashes(java.lang.String s)
s
- is the string to format.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |