org.exist.backup
Class ZipWriter
java.lang.Object
org.exist.backup.ZipWriter
- All Implemented Interfaces:
- BackupWriter
public class ZipWriter
- extends Object
- implements BackupWriter
Implementation of BackupWriter that writes to a zip file.
ZipWriter
public ZipWriter(String zipFile,
String collection)
throws IOException
- Throws:
IOException
newContents
public Writer newContents()
throws IOException
- Specified by:
newContents in interface BackupWriter
- Throws:
IOException
closeContents
public void closeContents()
throws IOException
- Specified by:
closeContents in interface BackupWriter
- Throws:
IOException
newEntry
public OutputStream newEntry(String name)
throws IOException
- Specified by:
newEntry in interface BackupWriter
- Throws:
IOException
closeEntry
public void closeEntry()
throws IOException
- Specified by:
closeEntry in interface BackupWriter
- Throws:
IOException
newCollection
public void newCollection(String name)
- Specified by:
newCollection in interface BackupWriter
closeCollection
public void closeCollection()
- Specified by:
closeCollection in interface BackupWriter
close
public void close()
throws IOException
- Specified by:
close in interface BackupWriter
- Throws:
IOException
Copyright (C) Wolfgang Meier. All rights reserved.