public static void write(TargetDefinitionFile target, File file) throws IOException { OutputStream os = new BufferedOutputStream(new FileOutputStream(file)); Document document = target.document; try { String enc = document.getEncoding() != null ? document.getEncoding() : "UTF-8"; Writer w = new OutputStreamWriter(os, enc); XMLWriter xw = new XMLWriter(w); try { document.toXML(xw); } finally { xw.flush(); } } finally { IOUtil.close(os); } }
public static void write(ProductConfiguration product, File file) throws IOException { OutputStream os = new BufferedOutputStream(new FileOutputStream(file)); Document document = product.document; try { String enc = document.getEncoding() != null ? document.getEncoding() : "UTF-8"; Writer w = new OutputStreamWriter(os, enc); XMLWriter xw = new XMLWriter(w); try { document.toXML(xw); } finally { xw.flush(); } } finally { IOUtil.close(os); } }
public static void write(TargetDefinitionFile target, File file) throws IOException { OutputStream os = new BufferedOutputStream(new FileOutputStream(file)); Document document = target.document; try { String enc = document.getEncoding() != null ? document.getEncoding() : "UTF-8"; Writer w = new OutputStreamWriter(os, enc); XMLWriter xw = new XMLWriter(w); try { document.toXML(xw); } finally { xw.flush(); } } finally { IOUtil.close(os); } }
public static void write(Category category, File file) throws IOException { OutputStream os = new BufferedOutputStream(new FileOutputStream(file)); Document document = category.document; try { String enc = document.getEncoding() != null ? document.getEncoding() : "UTF-8"; Writer w = new OutputStreamWriter(os, enc); XMLWriter xw = new XMLWriter(w); try { document.toXML(xw); } finally { xw.flush(); } } finally { IOUtil.close(os); } }
public static void write(UpdateSite site, File file) throws IOException { OutputStream os = new BufferedOutputStream(new FileOutputStream(file)); Document document = site.document; try { String enc = document.getEncoding() != null ? document.getEncoding() : "UTF-8"; Writer w = new OutputStreamWriter(os, enc); XMLWriter xw = new XMLWriter(w); try { document.toXML(xw); } finally { xw.flush(); } } finally { IOUtil.close(os); } }
public static void write(Category category, File file) throws IOException { OutputStream os = new BufferedOutputStream(new FileOutputStream(file)); Document document = category.document; try { String enc = document.getEncoding() != null ? document.getEncoding() : "UTF-8"; Writer w = new OutputStreamWriter(os, enc); XMLWriter xw = new XMLWriter(w); try { document.toXML(xw); } finally { xw.flush(); } } finally { IOUtil.close(os); } }
public static void write(ProductConfiguration product, File file) throws IOException { OutputStream os = new BufferedOutputStream(new FileOutputStream(file)); Document document = product.document; try { String enc = document.getEncoding() != null ? document.getEncoding() : "UTF-8"; Writer w = new OutputStreamWriter(os, enc); XMLWriter xw = new XMLWriter(w); try { document.toXML(xw); } finally { xw.flush(); } } finally { IOUtil.close(os); } }
public static void write(UpdateSite site, File file) throws IOException { OutputStream os = new BufferedOutputStream(new FileOutputStream(file)); Document document = site.document; try { String enc = document.getEncoding() != null ? document.getEncoding() : "UTF-8"; Writer w = new OutputStreamWriter(os, enc); XMLWriter xw = new XMLWriter(w); try { document.toXML(xw); } finally { xw.flush(); } } finally { IOUtil.close(os); } }
public static void write(Feature feature, File file, String indent) throws IOException { OutputStream os = new BufferedOutputStream(new FileOutputStream(file)); Document document = feature.document; try { String enc = document.getEncoding() != null ? document.getEncoding() : "UTF-8"; Writer w = new OutputStreamWriter(os, enc); XMLWriter xw = new XMLWriter(w); xw.setIndent(indent); try { document.toXML(xw); } finally { xw.flush(); } } finally { IOUtil.close(os); } }
public static void write(Feature feature, File file, String indent) throws IOException { OutputStream os = new BufferedOutputStream(new FileOutputStream(file)); Document document = feature.document; try { String enc = document.getEncoding() != null ? document.getEncoding() : "UTF-8"; Writer w = new OutputStreamWriter(os, enc); XMLWriter xw = new XMLWriter(w); xw.setIndent(indent); try { document.toXML(xw); } finally { xw.flush(); } } finally { IOUtil.close(os); } }
public static void write(IU iu, File file, String indent) throws IOException { OutputStream os = new BufferedOutputStream(new FileOutputStream(file)); Document document = iu.document; try { String enc = document.getEncoding() != null ? document.getEncoding() : "UTF-8"; Writer w = new OutputStreamWriter(os, enc); XMLWriter xw = new XMLWriter(w); xw.setIndent(indent); try { document.toXML(xw); } finally { xw.flush(); } } finally { IOUtil.close(os); } } }
public static void write( Feature feature, File file ) throws IOException { OutputStream os = new BufferedOutputStream( new FileOutputStream( file ) ); Document document = feature.document; try { String enc = document.getEncoding() != null ? document.getEncoding() : "UTF-8"; Writer w = new OutputStreamWriter( os, enc ); XMLWriter xw = new XMLWriter( w ); try { document.toXML( xw ); } finally { xw.flush(); } } finally { IOUtil.close( os ); } }
public static void write( Target target, File file ) throws IOException { OutputStream os = new BufferedOutputStream( new FileOutputStream( file ) ); Document document = target.document; try { String enc = document.getEncoding() != null ? document.getEncoding() : "UTF-8"; Writer w = new OutputStreamWriter( os, enc ); XMLWriter xw = new XMLWriter( w ); try { document.toXML( xw ); } finally { xw.flush(); } } finally { IOUtil.close( os ); } }
public static void write( UpdateSite site, File file ) throws IOException { OutputStream os = new BufferedOutputStream( new FileOutputStream( file ) ); Document document = site.document; try { String enc = document.getEncoding() != null ? document.getEncoding() : "UTF-8"; Writer w = new OutputStreamWriter( os, enc ); XMLWriter xw = new XMLWriter( w ); try { document.toXML( xw ); } finally { xw.flush(); } } finally { IOUtil.close( os ); } }
public static void write( Category category, File file ) throws IOException { OutputStream os = new BufferedOutputStream( new FileOutputStream( file ) ); Document document = category.document; try { String enc = document.getEncoding() != null ? document.getEncoding() : "UTF-8"; Writer w = new OutputStreamWriter( os, enc ); XMLWriter xw = new XMLWriter( w ); try { document.toXML( xw ); } finally { xw.flush(); } } finally { IOUtil.close( os ); } }
public static void write( ProductConfiguration product, File file ) throws IOException { OutputStream os = new BufferedOutputStream( new FileOutputStream( file ) ); Document document = product.document; try { String enc = document.getEncoding() != null ? document.getEncoding() : "UTF-8"; Writer w = new OutputStreamWriter( os, enc ); XMLWriter xw = new XMLWriter( w ); try { document.toXML( xw ); } finally { xw.flush(); } } finally { IOUtil.close( os ); } }
public static void write(IU iu, File file, String indent) throws IOException { OutputStream os = new BufferedOutputStream(new FileOutputStream(file)); Document document = iu.document; try { String enc = document.getEncoding() != null ? document.getEncoding() : "UTF-8"; Writer w = new OutputStreamWriter(os, enc); XMLWriter xw = new XMLWriter(w); xw.setIndent(indent); try { document.toXML(xw); } finally { xw.flush(); } } finally { IOUtil.close(os); } } }