All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ctc.wstx.osgi.InputFactoryProviderImpl Maven / Gradle / Ivy

Go to download

Woodstox is a high-performance XML processor that implements Stax (JSR-173), SAX2 and Stax2 APIs

The newest version!
package com.ctc.wstx.osgi;

import java.util.Properties;

import org.codehaus.stax2.XMLInputFactory2;
import org.codehaus.stax2.osgi.Stax2InputFactoryProvider;

import com.ctc.wstx.api.ReaderConfig;
import com.ctc.wstx.stax.WstxInputFactory;

public class InputFactoryProviderImpl
    implements Stax2InputFactoryProvider
{
    @Override
    public XMLInputFactory2 createInputFactory() {
        return new WstxInputFactory();
    }

    protected Properties getProperties()
    {
        Properties props = new Properties();
        props.setProperty(OSGI_SVC_PROP_IMPL_NAME, ReaderConfig.getImplName());
        props.setProperty(OSGI_SVC_PROP_IMPL_VERSION, ReaderConfig.getImplVersion());
        return props;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy