org.exolab.castor.dsml
Class Importer

java.lang.Object
  extended by org.exolab.castor.dsml.Importer
Direct Known Subclasses:
JNDIImporter, MozillaImporter

public abstract class Importer
extends java.lang.Object

Version:
$Revision: 8145 $ $Date: 2006-04-10 16:39:24 -0600 (Mon, 10 Apr 2006) $
Author:
Assaf Arkin

Constructor Summary
Importer()
           
 
Method Summary
protected abstract  Consumer createConsumer()
           
 ImportDescriptor getImportDescriptor()
           
 ImportEventListener getImportEventListener()
           
 void importDocument(java.io.InputStream stream)
           
 void importDocument(org.xml.sax.Parser parser, org.xml.sax.InputSource input)
           
 void importDocument(java.io.Reader reader)
           
abstract  void importEntries(java.util.Enumeration<javax.naming.directory.SearchResult> enumeration)
           
protected  void notify(java.lang.String name, int flag)
           
 void readImportDescriptor(java.io.InputStream input)
           
protected  void readImportDescriptor(org.xml.sax.Parser parser, org.xml.sax.InputSource input)
           
 void readImportDescriptor(java.io.Reader input)
           
 void setImportDescriptor(ImportDescriptor importDesc)
           
 void setImportEventListener(ImportEventListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Importer

public Importer()
Method Detail

setImportDescriptor

public void setImportDescriptor(ImportDescriptor importDesc)

getImportDescriptor

public ImportDescriptor getImportDescriptor()

setImportEventListener

public void setImportEventListener(ImportEventListener listener)
                            throws java.util.TooManyListenersException
Throws:
java.util.TooManyListenersException

getImportEventListener

public ImportEventListener getImportEventListener()

importDocument

public void importDocument(java.io.InputStream stream)
                    throws ImportExportException
Throws:
ImportExportException

importDocument

public void importDocument(java.io.Reader reader)
                    throws ImportExportException
Throws:
ImportExportException

importDocument

public void importDocument(org.xml.sax.Parser parser,
                           org.xml.sax.InputSource input)
                    throws ImportExportException
Throws:
ImportExportException

readImportDescriptor

public void readImportDescriptor(java.io.InputStream input)
                          throws java.io.IOException,
                                 org.xml.sax.SAXException
Throws:
java.io.IOException
org.xml.sax.SAXException

readImportDescriptor

public void readImportDescriptor(java.io.Reader input)
                          throws java.io.IOException,
                                 org.xml.sax.SAXException
Throws:
java.io.IOException
org.xml.sax.SAXException

readImportDescriptor

protected void readImportDescriptor(org.xml.sax.Parser parser,
                                    org.xml.sax.InputSource input)
                             throws java.io.IOException,
                                    org.xml.sax.SAXException
Throws:
java.io.IOException
org.xml.sax.SAXException

notify

protected void notify(java.lang.String name,
                      int flag)

createConsumer

protected abstract Consumer createConsumer()

importEntries

public abstract void importEntries(java.util.Enumeration<javax.naming.directory.SearchResult> enumeration)
                            throws ImportExportException
Throws:
ImportExportException


Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com