|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.zeroturnaround.liverebel.util.ArchiveConverter
public class ArchiveConverter
Converts archive files towards specific formats.
| Constructor Summary | |
|---|---|
ArchiveConverter(File archive)
Create a new archive converter instance to convert from a particular file. |
|
| Method Summary | |
|---|---|
void |
cleanup()
Clean up any temporary resources that have been created during the archive conversion process. |
File |
ensureZipArchive()
Tries its best to convert the archive that was provided in the constructor towards a zip file. |
Collection<File> |
getTempFiles()
Return the temporary files that have been used. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArchiveConverter(File archive)
archive - the existing archive file to convert from;
null references are supported and will result
into no-ops from any of the other methods in this class| Method Detail |
|---|
public File ensureZipArchive()
cleanup()
method when a file instance was returned by this method, after you've
finished using the returned file.
In case null is returned, cleanup isn't necessary as it will
have been done automatically.
File that is a valid zip archive; or
null if for any reason the conversion failedcleanup()public Collection<File> getTempFiles()
public void cleanup()
cleanup() might
invalidate the file that was returned by other methods, hence you should
only cleanup when you don't need the converted files anymore.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||