wt.tools.generation.language
Class JavaObject
java.lang.Object
java.io.Writer
wt.util.OutputFile
wt.tools.generation.language.MergableWriterFile
wt.tools.generation.language.ClassWriterFile
wt.tools.generation.language.JavaObject
- public class JavaObject
- extends ClassWriterFile
Method Summary |
void |
close()
Close the OutputFile . |
boolean |
open()
Opens the OutputFile , so that print and
println can be performed. |
void |
write()
|
Methods inherited from class wt.util.OutputFile |
backUpName, close, createBackupFile, ensureDirectoryExists, flush, get, getAllFiles, getFileName, getMergeFileName, getWriteMode, getWriter, print, println, restoreBackupFile, setEncoding, setFileName, setMergeFileName, setRemoveMergeFile, setWriteMode, toString, write |
objectOutput
protected ObjectOutputStream objectOutput
JavaObject
protected JavaObject()
close
public void close()
- Description copied from class:
OutputFile
- Close the
OutputFile
. If applicable, will delete a temporary backup file.
- Overrides:
close
in class OutputFile
open
public boolean open()
- Description copied from class:
OutputFile
- Opens the
OutputFile
, so that print
and
println
can be performed. The WriteMode is considered
to deterimine the exact actions to take.
WriteMode.BACKUP = Create a backup of any existing file, before re-writing it.
WriteMode.MERGE = Merge into an existing file.
WriteMode.ORIGINAL = Only open the file, if it doesn't already exist.
WriteMode.OVERWRITE = Clobber an existing file.
*Assumes source mergeFile and target output file will be in the same path.
- Overrides:
open
in class OutputFile
- Returns:
- true if it succeeds, otherwise return false
- See Also:
WriteMode
write
public void write()
- Overrides:
write
in class MergableWriterFile