org.eclipse.emf.cdo.server
Class CDOServerImporter

java.lang.Object
  extended by org.eclipse.emf.cdo.server.CDOServerImporter
Direct Known Subclasses:
CDOServerImporter.XML

public abstract class CDOServerImporter
extends Object

Imports the complete contents of a repository from the output created by a exporter into a new repository.

Subtypes specifiy the actual exchange format.

Since:
4.0

Nested Class Summary
static interface CDOServerImporter.Handler
          Persists the data that has been read by a importer into a new repository.
static class CDOServerImporter.XML
          An importer that reads and interprets XML output created by an XML exporter.
 
Constructor Summary
CDOServerImporter(IRepository repository)
           
 
Method Summary
protected  InternalRepository getRepository()
           
protected abstract  void importAll(InputStream in, CDOServerImporter.Handler handler)
           
 void importRepository(InputStream in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CDOServerImporter

public CDOServerImporter(IRepository repository)
Method Detail

getRepository

protected final InternalRepository getRepository()

importRepository

public void importRepository(InputStream in)
                      throws Exception
Throws:
Exception

importAll

protected abstract void importAll(InputStream in,
                                  CDOServerImporter.Handler handler)
                           throws Exception
Throws:
Exception


Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.