|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jboss.deployment.URLWizzard
Encapsulates URL bases copy and jar file operations. Very scratchy! Any improvements are welcome!
Constructor Summary | |
URLWizzard()
|
Method Summary | |
static java.net.URL |
createTempDir(java.net.URL _baseDir,
java.lang.String _prefix)
creates a directory like the File.createTempFile method |
static java.net.URL |
createTempFile(java.net.URL _baseDir,
java.lang.String _prefix,
java.lang.String _suffix)
creates a temporary file like File.createTempFile() |
static void |
deleteTree(java.net.URL _dir)
deletes the given file:/... |
static java.net.URL |
download(java.net.URL _src,
java.net.URL _dest)
copies the source to the destination url. |
static java.net.URL |
downloadAndInflate(java.net.URL _src,
java.net.URL _dest)
inflates the given zip file into the given directory |
static java.net.URL |
downloadAndInflateTemporary(java.net.URL _src,
java.net.URL _destDir,
java.lang.String _prefix)
inflates the given zip file into a directory created in the dest directory with the given prefix |
static void |
downloadAndPack(java.net.URL _src,
java.net.URL _dest)
packs the source directory the _src url points to to a jar archiv at the _dest position |
static java.net.URL |
downloadAndPackTemporary(java.net.URL _src,
java.net.URL _destDir,
java.lang.String _prefix,
java.lang.String _suffix)
packs the source directory the _src url points to to a jar archiv at the position composed from _destDir, _prefix and _suffix |
static java.net.URL |
downloadTemporary(java.net.URL _src,
java.net.URL _destDirectory,
java.lang.String _prefix,
java.lang.String _suffix)
copies the source to the destination. |
static void |
main(java.lang.String[] _args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public URLWizzard()
Method Detail |
public static void main(java.lang.String[] _args) throws java.lang.Exception
public static java.net.URL download(java.net.URL _src, java.net.URL _dest) throws java.io.IOException
public static java.net.URL downloadTemporary(java.net.URL _src, java.net.URL _destDirectory, java.lang.String _prefix, java.lang.String _suffix) throws java.io.IOException
public static void downloadAndPack(java.net.URL _src, java.net.URL _dest) throws java.io.IOException
public static java.net.URL downloadAndPackTemporary(java.net.URL _src, java.net.URL _destDir, java.lang.String _prefix, java.lang.String _suffix) throws java.io.IOException
public static java.net.URL downloadAndInflate(java.net.URL _src, java.net.URL _dest) throws java.io.IOException
public static java.net.URL downloadAndInflateTemporary(java.net.URL _src, java.net.URL _destDir, java.lang.String _prefix) throws java.io.IOException
public static java.net.URL createTempDir(java.net.URL _baseDir, java.lang.String _prefix) throws java.io.IOException
public static java.net.URL createTempFile(java.net.URL _baseDir, java.lang.String _prefix, java.lang.String _suffix) throws java.io.IOException
public static void deleteTree(java.net.URL _dir) throws java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |