|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ArchiveExtractor
Extracts an archive
Nested Class Summary | |
---|---|
static class |
ArchiveExtractor.ArchiveFormatException
Used to indicate a invalid format, this usually means that the entries do not conform to the expected file/dir name structure. |
static class |
ArchiveExtractor.Entry
An entry for an archive |
static interface |
ArchiveExtractor.EntryVisitor<R>
Visitor for visiting entries, can be used to find out information about the structure of the archive before doing a full extraction. |
static class |
ArchiveExtractor.Type
|
Method Summary | ||
---|---|---|
void |
extractEntryTo(String entry,
File output)
Extract an archive entry to the passed file. |
|
void |
extractTo(File destination,
String path,
TaskProgressSink taskProgressSink)
Extract the archive to the given destination |
|
ArchiveExtractor.Type |
getType()
Return the type of archive to the caller. |
|
|
visitEntries(ArchiveExtractor.EntryVisitor<R> visitor)
Visit the entries in the archive. |
Method Detail |
---|
void extractTo(File destination, String path, TaskProgressSink taskProgressSink) throws IOException
destination
- The destination to extract the archive topath
- The in the archive to extract fromtaskProgressSink
- to monitor the extraction progress
IOException
- If an error occuredvoid extractEntryTo(String entry, File output) throws IOException
entry
- the entry in the archive to extract.output
- the file to output to.
IOException
- if an I/O error occurs while extracting the file.<R> R visitEntries(ArchiveExtractor.EntryVisitor<R> visitor) throws IOException
R
- The type to returnvisitor
- The visitor to visit
IOException
- If an error occuredArchiveExtractor.Type getType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |