public void export( OutputStream output, boolean serverSchema, boolean importPolicy ) throws ImportExportException { try { export( _xmlContext.getSerializer( output ), serverSchema, importPolicy ); } catch ( IOException except ) { throw new ImportExportException( except ); } }
public void export(OutputStream output, boolean serverSchema, boolean importPolicy) throws ImportExportException { try { export(_xmlContext.getSerializer(output), serverSchema, importPolicy); } catch (IOException except) { throw new ImportExportException(except); } }
public abstract void export( DocumentHandler docHandler, boolean serverSchema, boolean importPolicy ) throws ImportExportException;
public abstract void export(DocumentHandler docHandler, boolean serverSchema, boolean importPolicy) throws ImportExportException;
private void configureSerializer(Writer out) throws IOException { _serializer = getInternalContext().getSerializer(); if (_serializer == null) throw new RuntimeException("Unable to obtain serializer"); _serializer.setOutputCharStream(out); // -- Due to a Xerces Serializer bug that doesn't allow declaring // -- multiple prefixes to the same namespace, we use the old // -- DocumentHandler format and process namespaces ourselves _handler = new DocumentHandlerAdapter(_serializer.asDocumentHandler()); if (_handler == null) { String err = Messages.format(SERIALIZER_NOT_SAX_CAPABLE, _serializer.getClass().getName()); throw new RuntimeException(err); } }
private void configureSerializer(Writer out) throws IOException { _serializer = getInternalContext().getSerializer(); if (_serializer == null) throw new RuntimeException("Unable to obtain serializer"); _serializer.setOutputCharStream( out ); //-- Due to a Xerces Serializer bug that doesn't allow declaring //-- multiple prefixes to the same namespace, we use the old //-- DocumentHandler format and process namespaces ourselves _handler = new DocumentHandlerAdapter(_serializer.asDocumentHandler()); if ( _handler == null ) { String err = Messages.format( SERIALIZER_NOT_SAX_CAPABLE, _serializer.getClass().getName() ); throw new RuntimeException( err ); } }