public class ZipDumpDestination extends Object implements DumpDestination
| Constructor and Description |
|---|
ZipDumpDestination(File file)
Creates new dump in given file (zip archive).
|
ZipDumpDestination(File directory,
String name)
Creates new dump in given directory.
|
| Modifier and Type | Method and Description |
|---|---|
OutputStream |
add(String name)
Create new entry in dump destination.
|
void |
save()
Closes archive handle.
|
String |
toString() |
public ZipDumpDestination(File directory, String name)
directory - Target directory.name - Name of the archive.public ZipDumpDestination(File file)
file - Destination file.public OutputStream add(String name) throws Exception
add in interface DumpDestinationname - Name of file in destination.Exception - When entry cannot be added.public void save()
throws Exception
save in interface DumpDestinationException - If the save operation fails.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.