Package com.ibm.commons.util.io

Examples of com.ibm.commons.util.io.FastBufferedOutputStream


     * @param node the source node
     * @param format the desired output format
     */
    public static void serialize( File file, Node node, Format format) throws XMLException {
        try {
            OutputStream os = new FastBufferedOutputStream(new FileOutputStream(file));
            try {
                serialize(os, node, format);
            } finally {
                os.close();
            }
        } catch(IOException e) {
//TODO - after resource bundle clarification            throw new XMLException(e, "Error while saving XML to file '{0}'", file.getPath()); //$NLS-DOMUtil.JDOMUtil.XmlSavingToFile.Exception-1$
            throw new XMLException(e,"JDOMUtil.XmlSavingToFile.Exception"+file.getPath()); // $NON-NLS-1$
        }
View Full Code Here

TOP

Related Classes of com.ibm.commons.util.io.FastBufferedOutputStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.