Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
/***********************************************************************************************************************
 * Copyright (c) 2008 empolis GmbH and brox IT Solutions GmbH. All rights reserved. This program and the accompanying
 * materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors: Ivan Churkin (brox IT Solutions GmbH) - initial creator Sebastian Voigt (brox IT Solutions GmbH)
 **********************************************************************************************************************/

import javax.xml.stream.XMLOutputFactory;

public class Main {
    /**
     * StAX writer factory.
     */
    private static XMLOutputFactory s_staxWriterFactory;

    /**
     * Get the XMLOutputFactory.
     * 
     * @return the XMLOutputFactory
     */
    public static XMLOutputFactory getStaxWriterFactory() {
        if (s_staxWriterFactory == null) {
            s_staxWriterFactory = XMLOutputFactory.newInstance();
        }
        return s_staxWriterFactory;
    }
}