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.XMLInputFactory;

public class Main {
    /**
     * StAX reader factory.
     */
    private static XMLInputFactory s_staxReaderFactory;

    /**
     * Get the XMLInputFactory.
     * 
     * @return the XMLInputFactory
     */
    public static XMLInputFactory getStaxReaderFactory() {
        if (s_staxReaderFactory == null) {
            s_staxReaderFactory = XMLInputFactory.newInstance();
        }
        return s_staxReaderFactory;
    }
}