org.jtheque.core.managers.file.impl
Class XMLRestorer

java.lang.Object
  extended by org.jtheque.core.managers.file.impl.XMLRestorer
All Implemented Interfaces:
Importer, Restorer

public class XMLRestorer
extends java.lang.Object
implements Restorer

A Restorer for the XML format.

Author:
Baptiste Wicht

Constructor Summary
XMLRestorer()
           
 
Method Summary
 boolean canImportFrom(FileType fileType)
          Indicate if the importer can import from a specific file format or not.
 void restore(java.io.File file, java.util.List<BackupReader> readers)
          Import all the data from the file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLRestorer

public XMLRestorer()
Method Detail

restore

public final void restore(java.io.File file,
                          java.util.List<BackupReader> readers)
                   throws org.jtheque.utils.io.FileException
Description copied from interface: Restorer
Import all the data from the file.

Specified by:
restore in interface Restorer
Parameters:
file - The file.
readers - The readers to use to restore.
Throws:
org.jtheque.utils.io.FileException - When an error occurs during the restore process.

canImportFrom

public final boolean canImportFrom(FileType fileType)
Description copied from interface: Importer
Indicate if the importer can import from a specific file format or not.

Specified by:
canImportFrom in interface Importer
Parameters:
fileType - The file format.
Returns:
true ou false


Copyright © 2009 JTheque. All Rights Reserved.