commit 75c6f4d51b18be0af0a7c4fb0e8cbf857ddaf126
parent 843df3747c85fec25f87129c830629fac8a19983
Author: Dan Callaghan <djc@djc.id.au>
Date: Sun, 8 Nov 2009 13:44:07 +1000
expose StAX XMLInputFactory so that callers can hack it up
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/main/java/au/com/miskinhill/search/analysis/XMLTokenizer.java b/src/main/java/au/com/miskinhill/search/analysis/XMLTokenizer.java
@@ -26,6 +26,9 @@ public class XMLTokenizer extends TokenStream {
static {
factory.setProperty("javax.xml.stream.isCoalescing", true);
}
+ public static XMLInputFactory getXMLInputFactory() {
+ return factory;
+ }
private static final String XHTML_NS_URI = "http://www.w3.org/1999/xhtml";