|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ZipExporter
Exporter used to represent an Assignable
in ZIP format.
http://www.pkware.com/documents/casestudies/APPNOTE.TXT
Method Summary | |
---|---|
InputStream |
exportZip()
Exports this reference as a Zip archive. |
void |
exportZip(File target)
Exports provided archive as a ZIP archive, written to the specified File target. |
void |
exportZip(File target,
boolean overwrite)
Exports provided archive as a ZIP archive, written to the specified File target. |
void |
exportZip(OutputStream target)
Exports provided archive as a ZIP archive, written to the specified OutputStream target. |
Methods inherited from interface org.jboss.shrinkwrap.api.Assignable |
---|
as |
Method Detail |
---|
InputStream exportZip()
InputStream
for exported Zipvoid exportZip(File target) throws ArchiveExportException, FileExistsException, IllegalArgumentException
File
target. If the target exists this call will
fail with IllegalArgumentException
archive
-
IllegalArgumentException
- If the target is not specified
FileExistsException
- If the target already exists
ArchiveExportException
- if the export process failsvoid exportZip(OutputStream target) throws ArchiveExportException, IllegalArgumentException
OutputStream
target. The specified
target will be closed upon completion.
target
-
ArchiveExportException
IllegalArgumentException
- If the target is not specifiedvoid exportZip(File target, boolean overwrite) throws ArchiveExportException, FileExistsException, IllegalArgumentException
File
target. If the target both exists and the "overwrite"
flag is true, this call will allow the existing file to be overwritten, else
the invocation will fail with IllegalArgumentException
archive
-
IllegalArgumentException
- If the target is not specified
FileExistsException
- If the target both already exists and the overwrite flag is false
ArchiveExportException
- if the export process fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |