org.objectweb.jorm.util.io.lib
Class JavaFileHolder

java.lang.Object
  extended byorg.objectweb.jorm.util.io.lib.JavaFileHolder
All Implemented Interfaces:
TargetHolder

public class JavaFileHolder
extends java.lang.Object
implements TargetHolder

A TargetHolder ...


Constructor Summary
JavaFileHolder(java.lang.String _targetDirectory)
           
 
Method Summary
 java.io.File getFile(java.lang.String filename)
           
 java.io.FileOutputStream getFileOutputStream(java.lang.String fileName)
           
 java.io.FileWriter getFileWriter(java.lang.String fileName)
          This method permits to obtain a FileWriter either the filename specified in parameter.
 java.util.Iterator iterateFile()
          Return an iterator on the absolute file managed by this holder.
 java.util.Iterator iterateFileWriter()
          Return an iterator on the absolute file writer managed by this holder.
 void javacAll()
          This method compiles all files managed by this holder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaFileHolder

public JavaFileHolder(java.lang.String _targetDirectory)
               throws java.lang.Exception
Method Detail

getFileWriter

public java.io.FileWriter getFileWriter(java.lang.String fileName)
                                 throws java.lang.Exception
This method permits to obtain a FileWriter either the filename specified in parameter.

Specified by:
getFileWriter in interface TargetHolder
Throws:
java.lang.Exception

getFileOutputStream

public java.io.FileOutputStream getFileOutputStream(java.lang.String fileName)
                                             throws java.lang.Exception
Specified by:
getFileOutputStream in interface TargetHolder
Throws:
java.lang.Exception

getFile

public java.io.File getFile(java.lang.String filename)
Specified by:
getFile in interface TargetHolder

iterateFile

public java.util.Iterator iterateFile()
Return an iterator on the absolute file managed by this holder. Element type of the returned iterator is java.util.File

Specified by:
iterateFile in interface TargetHolder

iterateFileWriter

public java.util.Iterator iterateFileWriter()
Return an iterator on the absolute file writer managed by this holder. Element type of the returned iterator is java.util.FileWriter

Specified by:
iterateFileWriter in interface TargetHolder

javacAll

public void javacAll()
              throws java.lang.Exception
This method compiles all files managed by this holder

Specified by:
javacAll in interface TargetHolder
Throws:
java.lang.Exception