Class Exporter

java.lang.Object
org.apache.jackrabbit.commons.xml.Exporter
Direct Known Subclasses:
DocumentViewExporter, SystemViewExporter

public abstract class Exporter extends Object
Abstract base class for document and system view exporters. This class takes care of all the details related to namespace mappings, shareable nodes, recursive exports, binary values, and so on while leaving the decisions about what kind of SAX events to generate to subclasses.

A subclass should only need to implement the abstract methods of this class to produce a fully functional exporter.

Since:
Jackrabbit JCR Commons 1.5
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    export(Node node)
    Exports the given node by preparing the export and calling the abstract exportNode(String, String, Node) method to give control of the export format to a subclass.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • export

      public void export(Node node) throws RepositoryException, SAXException
      Exports the given node by preparing the export and calling the abstract exportNode(String, String, Node) method to give control of the export format to a subclass.

      This method should be called only once for an exporter instance.

      Parameters:
      node - node to be exported
      Throws:
      SAXException - if a SAX error occurs
      RepositoryException - if a repository error occurs