/** * Write the InvCatalogImpl to the OutputStream as a InvCatalog 1.0 document. * * @param catalog - the catalog to be written * @param os - the OutputStream to write to * @param raw if true, write raw, vs converted * @throws IOException when the OutputStream can't be written * @throws IllegalStateException when the factory doesn't know how to write a 1.0 document. */ public void writeXML(InvCatalogImpl catalog, OutputStream os, boolean raw) throws IOException { InvCatalogConvertIF converter = this.getCatalogConverter(XMLEntityResolver.CATALOG_NAMESPACE_10); converter.writeXML(catalog, os, raw); }
/** * Write the InvCatalogImpl to the OutputStream as a InvCatalog 1.0 document. * * @param catalog - the catalog to be written * @param os - the OutputStream to write to * @param raw if true, write raw, vs converted * @throws IOException when the OutputStream can't be written * @throws IllegalStateException when the factory doesn't know how to write a 1.0 document. */ public void writeXML(InvCatalogImpl catalog, OutputStream os, boolean raw) throws IOException { InvCatalogConvertIF converter = this.getCatalogConverter(XMLEntityResolver.CATALOG_NAMESPACE_10); converter.writeXML(catalog, os, raw); }
/** * Write the InvCatalogImpl to the OutputStream as a InvCatalog 1.0 document. * * @param catalog - the catalog to be written * @param os - the OutputStream to write to * @param raw if true, write raw, vs converted * @throws IOException when the OutputStream can't be written * @throws IllegalStateException when the factory doesn't know how to write a 1.0 document. */ public void writeXML(InvCatalogImpl catalog, OutputStream os, boolean raw) throws IOException { InvCatalogConvertIF converter = this.getCatalogConverter(XMLEntityResolver.CATALOG_NAMESPACE_10); converter.writeXML(catalog, os, raw); }
static Document convertCatalogToDocument( InvCatalog catalog ) { InvCatalogFactory fac = InvCatalogFactory.getDefaultFactory( false ); InvCatalogConvertIF converter = fac.getCatalogConverter( XMLEntityResolver.CATALOG_NAMESPACE_10 ); InvCatalogFactory10 fac10 = (InvCatalogFactory10) converter; return fac10.writeCatalog( (InvCatalogImpl) catalog ); }
static Document convertCatalogToDocument( InvCatalog catalog ) { InvCatalogFactory fac = InvCatalogFactory.getDefaultFactory( false ); InvCatalogConvertIF converter = fac.getCatalogConverter( XMLEntityResolver.CATALOG_NAMESPACE_10 ); InvCatalogFactory10 fac10 = (InvCatalogFactory10) converter; return fac10.writeCatalog( (InvCatalogImpl) catalog ); }
static Document convertCatalogToDocument( InvCatalog catalog ) { InvCatalogFactory fac = InvCatalogFactory.getDefaultFactory( false ); InvCatalogConvertIF converter = fac.getCatalogConverter( XMLEntityResolver.CATALOG_NAMESPACE_10 ); InvCatalogFactory10 fac10 = (InvCatalogFactory10) converter; return fac10.writeCatalog( (InvCatalogImpl) catalog ); }
InvCatalogFactory10 fac10 = (InvCatalogFactory10) this.catFactory.getCatalogConverter( XMLEntityResolver.CATALOG_NAMESPACE_10 ); fac10.setVersion( this.catalog.getVersion() ); BufferedOutputStream osCat = new BufferedOutputStream( new FileOutputStream( outFileName ) );
InvCatalogFactory10 fac10 = (InvCatalogFactory10) this.catFactory.getCatalogConverter( XMLEntityResolver.CATALOG_NAMESPACE_10 ); fac10.setVersion( this.catalog.getVersion() ); BufferedOutputStream osCat = new BufferedOutputStream( new FileOutputStream( outFileName ) );