public BaseXmlExporter getExportVisitor ( XmlMapping type , OutputStream stream , boolean skipBinary , boolean noRecurse , boolean exportChildVersionHistory , ItemDataConsumer dataManager , NamespaceRegistry namespaceRegistry , ValueFactoryImpl systemValueFactory ) throws NamespaceException , RepositoryException , IOException { XMLOutputFactory outputFactory = XMLOutputFactory . newInstance ( ) ; XMLStreamWriter streamWriter ; try { streamWriter = outputFactory . createXMLStreamWriter ( stream , Constants . DEFAULT_ENCODING ) ; } catch ( XMLStreamException e ) { throw new IOException ( e . getLocalizedMessage ( ) , e ) ; } if ( type == XmlMapping . SYSVIEW ) { return new SystemViewStreamExporter ( streamWriter , dataManager , namespaceRegistry , systemValueFactory , skipBinary , noRecurse , exportChildVersionHistory ) ; } else if ( type == XmlMapping . DOCVIEW ) { return new DocumentViewStreamExporter ( streamWriter , dataManager , namespaceRegistry , systemValueFactory , skipBinary , noRecurse ) ; } else if ( type == XmlMapping . BACKUP ) { return new WorkspaceSystemViewStreamExporter ( streamWriter , dataManager , namespaceRegistry , systemValueFactory , skipBinary , noRecurse ) ; } return null ; }
Create export visitor for given type of view . \