Package org.exolab.castor.xml

Examples of org.exolab.castor.xml.OutputFormat


     */
    public static OutputFormat getOutputFormat(final AbstractProperties properties) {

        boolean indent = properties.getBoolean(XMLProperties.USE_INDENTATION, false);

        OutputFormat format = getSerializerFactory(
                properties.getString(XMLProperties.SERIALIZER_FACTORY)).getOutputFormat();
        format.setMethod(OutputFormat.XML);
        format.setIndenting(indent);
       
        // There is a bad interaction between the indentation and the
        // setPreserveSpace option. The indentated output is strangely indented.
        if (!indent) {
            format.setPreserveSpace(true);
        }

        return format;
    } //-- getOutputFormat
View Full Code Here

TOP

Related Classes of org.exolab.castor.xml.OutputFormat

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.