Tabnine Logo
DocumentViewExporter.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.jackrabbit.commons.xml.DocumentViewExporter
constructor

Best Java code snippets using org.apache.jackrabbit.commons.xml.DocumentViewExporter.<init> (Showing top 9 results out of 315)

origin: apache/jackrabbit-oak

@Override
public void exportDocumentView(String absPath,
    ContentHandler contentHandler, boolean skipBinary, boolean noRecurse)
    throws SAXException, RepositoryException {
  export(checkNotNull(absPath), new DocumentViewExporter(this,
      checkNotNull(contentHandler), !noRecurse, !skipBinary));
}
origin: org.apache.jackrabbit/oak-jcr

@Override
public void exportDocumentView(String absPath,
    ContentHandler contentHandler, boolean skipBinary, boolean noRecurse)
    throws SAXException, RepositoryException {
  export(checkNotNull(absPath), new DocumentViewExporter(this,
      checkNotNull(contentHandler), !noRecurse, !skipBinary));
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

@Override
public void exportDocumentView(String absPath,
    ContentHandler contentHandler, boolean skipBinary, boolean noRecurse)
    throws SAXException, RepositoryException {
  export(checkNotNull(absPath), new DocumentViewExporter(this,
      checkNotNull(contentHandler), !noRecurse, !skipBinary));
}
origin: apache/jackrabbit

/**
 * Generates a document view export using a {@link DocumentViewExporter}
 * instance.
 *
 * @param path of the node to be exported
 * @param handler handler for the SAX events of the export
 * @param skipBinary whether binary values should be skipped
 * @param noRecurse whether to export just the identified node
 * @throws PathNotFoundException if a node at the given path does not exist
 * @throws SAXException if the SAX event handler failed
 * @throws RepositoryException if another error occurs
 */
public void exportDocumentView(
    String path, ContentHandler handler,
    boolean skipBinary, boolean noRecurse)
    throws PathNotFoundException, SAXException, RepositoryException {
  export(path, new DocumentViewExporter(
      this, handler, !noRecurse, !skipBinary));
}
origin: org.apache.jackrabbit/jackrabbit-jcr-commons

/**
 * Generates a document view export using a {@link DocumentViewExporter}
 * instance.
 *
 * @param path of the node to be exported
 * @param handler handler for the SAX events of the export
 * @param skipBinary whether binary values should be skipped
 * @param noRecurse whether to export just the identified node
 * @throws PathNotFoundException if a node at the given path does not exist
 * @throws SAXException if the SAX event handler failed
 * @throws RepositoryException if another error occurs
 */
public void exportDocumentView(
    String path, ContentHandler handler,
    boolean skipBinary, boolean noRecurse)
    throws PathNotFoundException, SAXException, RepositoryException {
  export(path, new DocumentViewExporter(
      this, handler, !noRecurse, !skipBinary));
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

/**
 * Generates a document view export using a {@link DocumentViewExporter}
 * instance.
 *
 * @param path of the node to be exported
 * @param handler handler for the SAX events of the export
 * @param skipBinary whether binary values should be skipped
 * @param noRecurse whether to export just the identified node
 * @throws PathNotFoundException if a node at the given path does not exist
 * @throws SAXException if the SAX event handler failed
 * @throws RepositoryException if another error occurs
 */
public void exportDocumentView(
    String path, ContentHandler handler,
    boolean skipBinary, boolean noRecurse)
    throws PathNotFoundException, SAXException, RepositoryException {
  export(path, new DocumentViewExporter(
      this, handler, !noRecurse, !skipBinary));
}
origin: apache/jackrabbit-oak

@Override
public void exportDocumentView(String absPath, OutputStream out,
    boolean skipBinary, boolean noRecurse) throws IOException,
    RepositoryException {
  try {
    ContentHandler handler = new ToXmlContentHandler(checkNotNull(out));
    export(checkNotNull(absPath), new DocumentViewExporter(this,
        handler, !noRecurse, !skipBinary));
  } catch (SAXException e) {
    Exception exception = e.getException();
    if (exception instanceof RepositoryException) {
      throw (RepositoryException) exception;
    } else if (exception instanceof IOException) {
      throw (IOException) exception;
    } else {
      throw new RepositoryException(
          "Error serializing document view XML", e);
    }
  }
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

@Override
public void exportDocumentView(String absPath, OutputStream out,
    boolean skipBinary, boolean noRecurse) throws IOException,
    RepositoryException {
  try {
    ContentHandler handler = new ToXmlContentHandler(checkNotNull(out));
    export(checkNotNull(absPath), new DocumentViewExporter(this,
        handler, !noRecurse, !skipBinary));
  } catch (SAXException e) {
    Exception exception = e.getException();
    if (exception instanceof RepositoryException) {
      throw (RepositoryException) exception;
    } else if (exception instanceof IOException) {
      throw (IOException) exception;
    } else {
      throw new RepositoryException(
          "Error serializing document view XML", e);
    }
  }
}
origin: org.apache.jackrabbit/oak-jcr

@Override
public void exportDocumentView(String absPath, OutputStream out,
    boolean skipBinary, boolean noRecurse) throws IOException,
    RepositoryException {
  try {
    ContentHandler handler = new ToXmlContentHandler(checkNotNull(out));
    export(checkNotNull(absPath), new DocumentViewExporter(this,
        handler, !noRecurse, !skipBinary));
  } catch (SAXException e) {
    Exception exception = e.getException();
    if (exception instanceof RepositoryException) {
      throw (RepositoryException) exception;
    } else if (exception instanceof IOException) {
      throw (IOException) exception;
    } else {
      throw new RepositoryException(
          "Error serializing document view XML", e);
    }
  }
}
org.apache.jackrabbit.commons.xmlDocumentViewExporter<init>

Javadoc

Creates a document view exporter.

Popular methods of DocumentViewExporter

  • addAttribute
  • exportNodes
  • characters
  • endElement
  • exportProperties
  • startElement
  • exportNode
    Exports the given node either as XML characters (if it's anxml:text node) or as an XML element with

Popular in Java

  • Updating database using SQL prepared statement
  • getExternalFilesDir (Context)
  • setScale (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now