|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.borg.model.ExportImport
public class ExportImport
contains common import/export utilities
| Constructor Summary | |
|---|---|
ExportImport()
|
|
| Method Summary | |
|---|---|
static void |
exportToZip(String dir,
boolean backup_email)
Export all models to XML files inside a time-stamped zipfile. |
static Model |
getImportModelForXML(BufferedReader in)
get the model that can import the given XML |
static void |
importFromXmlFile(Model model,
InputStream is)
Import from a single xml input stream. |
static void |
importFromZip(String zipFileName)
Import an entire backup Zip file |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExportImport()
| Method Detail |
|---|
public static void exportToZip(String dir,
boolean backup_email)
throws Exception
dir - the directory to create the zip file inbackup_email - - send email containing the backup
Exception
public static void importFromXmlFile(Model model,
InputStream is)
throws Exception
model - the Model to use for the importis - the input stream
Exception
public static Model getImportModelForXML(BufferedReader in)
throws IOException
in - - BufferedReader for the XML
IOException
public static void importFromZip(String zipFileName)
throws Exception
zipFileName - the backup file name
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||