mirror of https://github.com/apache/poi.git
change method to get XMLEventFactory due to issues seen on Android SDK
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1842683 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
09f441ca46
commit
5b890cb228
|
@ -55,7 +55,8 @@ public final class StaxHelper {
|
||||||
* Creates a new StAX XMLEventFactory, with sensible defaults
|
* Creates a new StAX XMLEventFactory, with sensible defaults
|
||||||
*/
|
*/
|
||||||
public static XMLEventFactory newXMLEventFactory() {
|
public static XMLEventFactory newXMLEventFactory() {
|
||||||
return XMLEventFactory.newFactory();
|
// this method seems safer on Android than getFactory()
|
||||||
|
return XMLEventFactory.newInstance();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void trySetProperty(XMLInputFactory factory, String feature, boolean flag) {
|
private static void trySetProperty(XMLInputFactory factory, String feature, boolean flag) {
|
||||||
|
|
Loading…
Reference in New Issue