|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.idoox.wasp.tools.common.FileCompilerIO
A basic implementation of the interface
CompilerIO.
Creates a new files (if any file exist, overwrites it) with
a given name in a directory set in constructor. If the target
directory doesn't exist, it is created.
| Field Summary | |
protected java.io.File |
targetDirectory
|
| Constructor Summary | |
FileCompilerIO()
Creates new instance of FileCompilerIO with the target directory set to the actual directory. |
|
FileCompilerIO(java.io.File targetDirectory)
Creates new instance of FileCompilerIO with the specified target directory. |
|
FileCompilerIO(java.lang.String targetDirectory)
Creates new instance of FileCompilerIO with the specified target directory. |
|
| Method Summary | |
java.io.PrintWriter |
getWriter(java.lang.String relativePath)
Creates a new file and returns a PrintWriter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.io.File targetDirectory
| Constructor Detail |
public FileCompilerIO()
public FileCompilerIO(java.lang.String targetDirectory)
targetDirectory - a target directory to which paths relatepublic FileCompilerIO(java.io.File targetDirectory)
targetDirectory - a target directory to which paths relate| Method Detail |
public java.io.PrintWriter getWriter(java.lang.String relativePath)
throws java.io.IOException
getWriter in interface CompilerIOrelativePath - a file's path to create
java.io.IOException - if any exception occures
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||