code: public void exportView( Node node,
                              OutputStream os,
                              boolean skipBinary,
                              boolean noRecurse ) throws IOException, RepositoryException {
          try {
              exportView(node, new StreamingContentHandler(os, UNEXPORTABLE_NAMESPACES), skipBinary, noRecurse);
              os.flush();
          } catch (SAXException se) {
              throw new RepositoryException(se);
          }
      }
docs: Exports <code>node</code> (or the subtree rooted at <code>node</code>) into an XML document that is written to
  <code>os</code>.
  
  @param node the node which should be exported. If <code>noRecursion</code> was set to <code>false</code> in the
  constructor, the entire subtree rooted at <code>node</code> will be exported.
  @param os the {@link OutputStream} to which the XML document will be written
  @param skipBinary if <code>true</code>, indicates that binary properties should not be exported
  @param noRecurse if<code>true</code>, indicates that only the given node should be exported, otherwise a recursive export
  and not any of its child nodes.
  @throws RepositoryException if an exception occurs accessing the content repository, generating the XML document, or
  writing it to the output stream <code>os</code>.
  @throws IOException if there is a problem writing to the supplied stream