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(String targetDir)
           
 
Method Summary
 File buildDir(String packageName)
           
 File getFileToWrite(String packageName, String fileName)
           
static Writer getWriter(File fn)
           
static Writer getWriter(File fn, String encoding)
           
 Writer getWriter(String packageName, String fileName)
           
 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(String targetDir)
               throws ToolException
Throws:
ToolException
Method Detail

getFileToWrite

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

getWriter

public static Writer getWriter(File fn)
                        throws IOException
Throws:
IOException

getWriter

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

getWriter

public Writer getWriter(String packageName,
                        String fileName)
                 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