|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pz.platypus.plugin.rtf.RtfOutfile
public class RtfOutfile
Handles the output to the RTF file
Field Summary | |
---|---|
private java.lang.String |
filename
|
private java.io.FileWriter |
fwOut
|
private GDD |
gdd
|
private boolean |
isOpen
|
private RtfData |
rtd
|
Constructor Summary | |
---|---|
RtfOutfile(java.lang.String filename,
RtfData rtd)
|
Method Summary | |
---|---|
void |
close(java.util.logging.Logger log)
Close the file |
private void |
emitRtfEpilog()
Writes the closing part of the RTF file. |
private void |
emitRtfProlog()
Writes the required header parts of the RTF file. |
boolean |
isOpen()
|
java.io.FileWriter |
open(java.lang.String filename,
java.util.logging.Logger log)
Get an instance of FileWriter, to which we will emit RTF output |
void |
writeCommand(java.lang.String command)
Write a command string to the RTF file. |
void |
writeText(java.lang.String text)
Write a String of text to the RTF file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private boolean isOpen
private java.lang.String filename
private java.io.FileWriter fwOut
private GDD gdd
private RtfData rtd
Constructor Detail |
---|
public RtfOutfile(java.lang.String filename, RtfData rtd)
Method Detail |
---|
public java.io.FileWriter open(java.lang.String filename, java.util.logging.Logger log) throws java.io.IOException
filename
- of file to open (obtained from the command line)log
- logger for error messages
java.io.IOException
- in the event the file can't be openedprivate void emitRtfProlog() throws java.io.IOException
java.io.IOException
- in the event of an I/O errorprivate void emitRtfEpilog() throws java.io.IOException
java.io.IOException
- in the event of an I/O errorpublic void writeText(java.lang.String text) throws java.io.IOException
text
- text to write
java.io.IOException
- in the event of an I/O errorpublic void writeCommand(java.lang.String command) throws java.io.IOException
command
- text to write
java.io.IOException
- in the event of an I/O errorpublic void close(java.util.logging.Logger log) throws java.io.IOException
log
- for literals
java.io.IOException
- in case of errorpublic boolean isOpen()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |