Apache CXF API

org.apache.cxf.tools.util
Class FileWriterUtil

java.lang.Object
  extended by org.apache.cxf.tools.util.FileWriterUtil

public class FileWriterUtil
extends Object


Constructor Summary
FileWriterUtil()
           
FileWriterUtil(String targetDir, OutputStreamCreator osc)
           
 
Method Summary
 File buildDir(String packageName)
           
 File getFileToWrite(String packageName, String fileName)
           
 Writer getWriter(File fn, String encoding)
           
 Writer getWriter(String packageName, String fileName)
           
 Writer getWriter(String packageName, String fileName, String encoding)
           
 boolean isCollision(String packageName, String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileWriterUtil

public FileWriterUtil()
               throws ToolException
Throws:
ToolException

FileWriterUtil

public FileWriterUtil(String targetDir,
                      OutputStreamCreator osc)
               throws ToolException
Throws:
ToolException
Method Detail

getFileToWrite

public File getFileToWrite(String packageName,
                           String fileName)
                    throws IOException
Throws:
IOException

getWriter

public Writer getWriter(File fn,
                        String encoding)
                 throws IOException
Throws:
IOException

getWriter

public Writer getWriter(String packageName,
                        String fileName)
                 throws IOException
Throws:
IOException

getWriter

public Writer getWriter(String packageName,
                        String fileName,
                        String encoding)
                 throws IOException
Throws:
IOException

isCollision

public boolean isCollision(String packageName,
                           String fileName)
                    throws ToolException
Throws:
ToolException

buildDir

public File buildDir(String packageName)

Apache CXF API

Apache CXF