commit 5f32b83b0259ad497bfae0e9eb8b4bb47cfd10e8
parent 9baabebc3b66252d08a2e68cec144241acda76c4
Author: Dan Callaghan <djc@djc.id.au>
Date: Wed, 31 Dec 2008 23:03:08 +1000
oops
--HG--
extra : convert_revision : dbe32ac48c03a8fff97a1e32caffa412a95b6227
Diffstat:
1 file changed, 5 insertions(+), 4 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
@@ -57,14 +57,15 @@ public class XMLTokenizer extends TokenStream {
/** Current delegate in use (null if none currently) */
private TokenStream delegate = null;
- public XMLTokenizer(Reader reader, PerLanguageAnalyzerWrapper analyzer) throws XMLStreamException {
+ public XMLTokenizer(Reader reader, PerLanguageAnalyzerWrapper analyzer)
+ throws XMLStreamException {
this.analyzer = analyzer;
r = factory.createXMLEventReader(reader);
}
- public XMLTokenizer(InputStream in) throws XMLStreamException {
- XMLInputFactory factory = XMLInputFactory.newInstance();
- factory.setProperty("javax.xml.stream.isCoalescing", true);
+ public XMLTokenizer(InputStream in, PerLanguageAnalyzerWrapper analyzer)
+ throws XMLStreamException {
+ this.analyzer = analyzer;
r = factory.createXMLEventReader(in);
}