org.apache.jackrabbit.commons
Class AbstractWorkspace

java.lang.Object
  extended by org.apache.jackrabbit.commons.AbstractWorkspace
All Implemented Interfaces:
Workspace

public abstract class AbstractWorkspace
extends Object
implements Workspace

Abstract base class for implementing the JCR Workspace interface.


Constructor Summary
AbstractWorkspace()
           
 
Method Summary
 void importXML(String parentAbsPath, InputStream in, int uuidBehavior)
          Parses the given input stream as an XML document and processes the SAX events using the ContentHandler returned by Workspace.getImportContentHandler(String, int).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.jcr.Workspace
clone, copy, copy, getAccessibleWorkspaceNames, getImportContentHandler, getName, getNamespaceRegistry, getNodeTypeManager, getObservationManager, getQueryManager, getSession, move, restore
 

Constructor Detail

AbstractWorkspace

public AbstractWorkspace()
Method Detail

importXML

public void importXML(String parentAbsPath,
                      InputStream in,
                      int uuidBehavior)
               throws IOException,
                      RepositoryException
Parses the given input stream as an XML document and processes the SAX events using the ContentHandler returned by Workspace.getImportContentHandler(String, int).

Specified by:
importXML in interface Workspace
Parameters:
parentAbsPath - passed through
in - input stream to be parsed as XML and imported
uuidBehavior - passed through
Throws:
IOException - if an I/O error occurs
RepositoryException - if another error occurs


Copyright © 2004-2007 The Apache Software Foundation. All Rights Reserved.