2017-06-24 07:30:07 +00:00
|
|
|
/* ====================================================================
|
|
|
|
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
|
contributor license agreements. See the NOTICE file distributed with
|
|
|
|
|
this work for additional information regarding copyright ownership.
|
|
|
|
|
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
|
|
|
(the "License"); you may not use this file except in compliance with
|
|
|
|
|
the License. You may obtain a copy of the License at
|
|
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
|
limitations under the License.
|
|
|
|
|
==================================================================== */
|
|
|
|
|
|
|
|
|
|
package org.apache.poi.util;
|
|
|
|
|
|
2017-06-24 13:53:47 +00:00
|
|
|
import javax.xml.stream.XMLEventFactory;
|
2017-06-24 07:30:07 +00:00
|
|
|
import javax.xml.stream.XMLInputFactory;
|
2017-06-24 13:53:47 +00:00
|
|
|
import javax.xml.stream.XMLOutputFactory;
|
2017-06-24 07:30:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Provides handy methods for working with StAX parsers and readers
|
2019-12-03 21:56:47 +00:00
|
|
|
*
|
|
|
|
|
* @deprecated use {@link XMLHelper}
|
2017-06-24 07:30:07 +00:00
|
|
|
*/
|
2019-12-03 21:56:47 +00:00
|
|
|
@Deprecated
|
2020-06-02 10:52:03 +00:00
|
|
|
@Removal(version = "6.0.0")
|
2017-06-24 07:30:07 +00:00
|
|
|
public final class StaxHelper {
|
2019-12-01 02:05:51 +00:00
|
|
|
private StaxHelper() {
|
|
|
|
|
}
|
2017-06-24 07:30:07 +00:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Creates a new StAX XMLInputFactory, with sensible defaults
|
|
|
|
|
*/
|
|
|
|
|
public static XMLInputFactory newXMLInputFactory() {
|
2019-12-03 21:56:47 +00:00
|
|
|
return XMLHelper.newXMLInputFactory();
|
2017-06-24 07:30:07 +00:00
|
|
|
}
|
2017-06-24 13:53:47 +00:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Creates a new StAX XMLOutputFactory, with sensible defaults
|
|
|
|
|
*/
|
|
|
|
|
public static XMLOutputFactory newXMLOutputFactory() {
|
2019-12-03 21:56:47 +00:00
|
|
|
return XMLHelper.newXMLOutputFactory();
|
2017-06-24 13:53:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Creates a new StAX XMLEventFactory, with sensible defaults
|
|
|
|
|
*/
|
|
|
|
|
public static XMLEventFactory newXMLEventFactory() {
|
2019-12-03 21:56:47 +00:00
|
|
|
return XMLHelper.newXMLEventFactory();
|
2017-06-24 13:53:47 +00:00
|
|
|
}
|
2017-06-24 07:30:07 +00:00
|
|
|
}
|