org.exist.backup
Class FileSystemWriter

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

public class FileSystemWriter
extends Object
implements BackupWriter

Implementation of BackupWriter that writes to the file system.


Constructor Summary
FileSystemWriter(String path)
           
 
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

FileSystemWriter

public FileSystemWriter(String path)
Method Detail

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

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


Copyright (C) Wolfgang Meier. All rights reserved.