|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Archive
Archive is the interface which defines all operations for all possible archive-operations. TODO: - delete files from an archive - add files to an existing archive - recursivley add directories
| Method Summary | |
|---|---|
void |
add(ArchiveEntry entry)
Adds a FileInputStream to the internal filelist for a possible pack-operation |
void |
add(File file)
Adds a file to the internal filelist for a possible pack-operation |
void |
close()
Closes this archiver and all internal streams. |
File |
getArchive()
Returns the archive file and null, if this archiver has not been saved yet or there has not been set an archive manually. |
Iterator |
getEntryIterator()
Get an iterator of ArchiveEntrys which shall be archived |
void |
save(File output)
Packs this file. |
void |
save(OutputStream output)
Packs a file. |
void |
setArchive(File file)
Sets an Archive for manipulating. |
void |
unpack(File destinationDir)
Unpacks to the specified directory |
| Method Detail |
|---|
void add(File file)
throws FileNotFoundException
FileNotFoundExceptionvoid add(ArchiveEntry entry)
void save(OutputStream output)
throws ArchiveException
ArchiveException - if there is no destination file or files to be packed
void save(File output)
throws ArchiveException
ArchiveException - if there is no destination file or files to be packedvoid setArchive(File file)
file - the file to manipulateFile getArchive()
void unpack(File destinationDir)
throws UnpackException
destinationDir - to unpack
UnpackException - if an unpack error occursIterator getEntryIterator()
void close()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||