org.exist.backup
Class ZipWriter

java.lang.Object
  extended by org.exist.backup.ZipWriter
All Implemented Interfaces:
BackupWriter

public class ZipWriter
extends Object
implements BackupWriter

Implementation of BackupWriter that writes to a zip file.


Constructor Summary
ZipWriter(String zipFile, String collection)
           
 
Method Summary
 void close()
           
 void closeCollection()
           
 void closeContents()
           
 void closeEntry()
           
 void newCollection(String name)
           
 Writer newContents()
           
 OutputStream newEntry(String name)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipWriter

public ZipWriter(String zipFile,
                 String collection)
          throws IOException
Throws:
IOException
Method Detail

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.