Package org.apache.cxf.tools.util
Class FileWriterUtil
- java.lang.Object
-
- org.apache.cxf.tools.util.FileWriterUtil
-
public class FileWriterUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description FileWriterUtil()
FileWriterUtil(String targetDir, OutputStreamCreator osc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
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
-
-