|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.jca.codegenerator.Utils
public class Utils

A Utils.
| Constructor Summary | |
|---|---|
Utils()
|
|
| Method Summary | |
|---|---|
static void |
copyFolder(String sourcePath,
String targetPath,
String filterName)
copy folders |
static FileWriter |
createFile(String name,
String outDir)
Create file |
static FileWriter |
createSrcFile(String name,
String packageName,
String outDir)
Create source file |
static FileWriter |
createTestFile(String name,
String packageName,
String outDir)
Create test file |
static String |
readFileIntoString(URL input)
Reads the contents of a file into a string variable. |
static void |
recursiveDelete(File f)
Recursive delete |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Utils()
| Method Detail |
|---|
public static String readFileIntoString(URL input)
throws IOException
input - url
IOException - ioException
public static FileWriter createSrcFile(String name,
String packageName,
String outDir)
throws IOException
name - The name of the classpackageName - The package nameoutDir - output directory
IOException - Thrown if an error occurs
public static FileWriter createTestFile(String name,
String packageName,
String outDir)
throws IOException
name - The name of the classpackageName - The package nameoutDir - output directory
IOException - Thrown if an error occurs
public static FileWriter createFile(String name,
String outDir)
throws IOException
name - The name of the classoutDir - output directory
IOException - Thrown if an error occurs
public static void recursiveDelete(File f)
throws IOException
f - The file handler
IOException - Thrown if a file could not be deleted
public static void copyFolder(String sourcePath,
String targetPath,
String filterName)
throws IOException
sourcePath - source foldertargetPath - target folderfilterName - filter name
IOException - Thrown if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||