mhs-xapian 1.0.18a
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -0
- data/AUTHORS +1 -0
- data/COPYING +340 -0
- data/ChangeLog +5876 -0
- data/HACKING +101 -0
- data/INSTALL +293 -0
- data/Makefile +722 -0
- data/Makefile.am +26 -0
- data/Makefile.in +722 -0
- data/NEWS +2110 -0
- data/README +59 -0
- data/Rakefile +51 -0
- data/TODO +47 -0
- data/aclocal.m4 +7675 -0
- data/config.guess +1501 -0
- data/config.h +56 -0
- data/config.h.in +55 -0
- data/config.status +1298 -0
- data/config.sub +1705 -0
- data/configure +18536 -0
- data/configure.ac +944 -0
- data/csharp/.deps/xapian_wrap.Plo +1 -0
- data/csharp/AssemblyInfo.cs +40 -0
- data/csharp/AssemblyInfo.cs.in +40 -0
- data/csharp/Auto.cs +46 -0
- data/csharp/BM25Weight.cs +107 -0
- data/csharp/BoolWeight.cs +103 -0
- data/csharp/Database.cs +275 -0
- data/csharp/DateValueRangeProcessor.cs +61 -0
- data/csharp/Document.cs +177 -0
- data/csharp/ESet.cs +94 -0
- data/csharp/ESetIterator.cs +117 -0
- data/csharp/Enquire.cs +274 -0
- data/csharp/ExpandDecider.cs +76 -0
- data/csharp/Flint.cs +58 -0
- data/csharp/InMemory.cs +46 -0
- data/csharp/MSet.cs +193 -0
- data/csharp/MSetIterator.cs +141 -0
- data/csharp/Makefile +868 -0
- data/csharp/Makefile.am +106 -0
- data/csharp/Makefile.in +868 -0
- data/csharp/MatchDecider.cs +76 -0
- data/csharp/MultiValueSorter.cs +63 -0
- data/csharp/NumberValueRangeProcessor.cs +61 -0
- data/csharp/PositionIterator.cs +101 -0
- data/csharp/PostingIterator.cs +125 -0
- data/csharp/Quartz.cs +58 -0
- data/csharp/Query.cs +150 -0
- data/csharp/QueryParser.cs +174 -0
- data/csharp/RSet.cs +102 -0
- data/csharp/Remote.cs +100 -0
- data/csharp/SWIGTYPE_p_std__string.cs +30 -0
- data/csharp/SWIGTYPE_p_std__vectorTXapian__Query_t.cs +30 -0
- data/csharp/SWIGTYPE_p_std__vectorTstd__string_t.cs +30 -0
- data/csharp/SimpleStopper.cs +64 -0
- data/csharp/SmokeTest.cs +178 -0
- data/csharp/Sorter.cs +76 -0
- data/csharp/Stem.cs +66 -0
- data/csharp/Stopper.cs +91 -0
- data/csharp/StringValueRangeProcessor.cs +53 -0
- data/csharp/TermGenerator.cs +152 -0
- data/csharp/TermIterator.cs +125 -0
- data/csharp/TradWeight.cs +107 -0
- data/csharp/ValueIterator.cs +102 -0
- data/csharp/ValueRangeProcessor.cs +76 -0
- data/csharp/Version.cs +60 -0
- data/csharp/Weight.cs +93 -0
- data/csharp/WritableDatabase.cs +153 -0
- data/csharp/Xapian.cs +65 -0
- data/csharp/XapianPINVOKE.cs +1527 -0
- data/csharp/docs/Makefile +450 -0
- data/csharp/docs/Makefile.am +16 -0
- data/csharp/docs/Makefile.in +450 -0
- data/csharp/docs/examples/SimpleExpand.cs +109 -0
- data/csharp/docs/examples/SimpleIndex.cs +71 -0
- data/csharp/docs/examples/SimpleSearch.cs +78 -0
- data/csharp/docs/index.html +211 -0
- data/csharp/util.i +233 -0
- data/csharp/xapian_wrap.cc +10338 -0
- data/csharp/xapian_wrap.h +93 -0
- data/depcomp +632 -0
- data/extconf.rb +20 -0
- data/generic/except.i +80 -0
- data/generic/generic.mk +48 -0
- data/install-sh +520 -0
- data/java-swig/.deps/xapian_wrap.Plo +1 -0
- data/java-swig/Auto.java +35 -0
- data/java-swig/BM25Weight.java +81 -0
- data/java-swig/BoolWeight.java +77 -0
- data/java-swig/Database.java +195 -0
- data/java-swig/DateValueRangeProcessor.java +51 -0
- data/java-swig/Document.java +135 -0
- data/java-swig/ESet.java +71 -0
- data/java-swig/ESetIterator.java +71 -0
- data/java-swig/Enquire.java +246 -0
- data/java-swig/ExpandDecider.java +59 -0
- data/java-swig/Flint.java +43 -0
- data/java-swig/InMemory.java +35 -0
- data/java-swig/MSet.java +143 -0
- data/java-swig/MSetIterator.java +87 -0
- data/java-swig/Makefile +781 -0
- data/java-swig/Makefile.am +132 -0
- data/java-swig/Makefile.in +781 -0
- data/java-swig/MatchDecider.java +59 -0
- data/java-swig/MultiValueSorter.java +51 -0
- data/java-swig/NumberValueRangeProcessor.java +51 -0
- data/java-swig/PositionIterator.java +63 -0
- data/java-swig/PostingIterator.java +83 -0
- data/java-swig/Quartz.java +43 -0
- data/java-swig/Query.java +189 -0
- data/java-swig/QueryParser.java +214 -0
- data/java-swig/RSet.java +79 -0
- data/java-swig/Remote.java +71 -0
- data/java-swig/SWIGTYPE_p_std__string.java +25 -0
- data/java-swig/SimpleStopper.java +51 -0
- data/java-swig/SmokeTest.java +161 -0
- data/java-swig/Sorter.java +59 -0
- data/java-swig/Stem.java +51 -0
- data/java-swig/Stopper.java +63 -0
- data/java-swig/StringValueRangeProcessor.java +43 -0
- data/java-swig/TermGenerator.java +158 -0
- data/java-swig/TermIterator.java +83 -0
- data/java-swig/TradWeight.java +81 -0
- data/java-swig/ValueIterator.java +67 -0
- data/java-swig/ValueRangeProcessor.java +59 -0
- data/java-swig/Version.java +47 -0
- data/java-swig/Weight.java +68 -0
- data/java-swig/WritableDatabase.java +123 -0
- data/java-swig/Xapian.java +39 -0
- data/java-swig/XapianConstants.java +15 -0
- data/java-swig/XapianJNI.java +508 -0
- data/java-swig/run-java-test +6 -0
- data/java-swig/xapian_wrap.cc +12594 -0
- data/java-swig/xapian_wrap.h +91 -0
- data/java/Makefile +660 -0
- data/java/Makefile.am +35 -0
- data/java/Makefile.in +660 -0
- data/java/README +76 -0
- data/java/SmokeTest.java +148 -0
- data/java/native/.deps/Database.Plo +1 -0
- data/java/native/.deps/Document.Plo +1 -0
- data/java/native/.deps/ESet.Plo +1 -0
- data/java/native/.deps/ESetIterator.Plo +1 -0
- data/java/native/.deps/Enquire.Plo +1 -0
- data/java/native/.deps/MSet.Plo +1 -0
- data/java/native/.deps/MSetIterator.Plo +1 -0
- data/java/native/.deps/PositionIterator.Plo +1 -0
- data/java/native/.deps/Query.Plo +1 -0
- data/java/native/.deps/RSet.Plo +1 -0
- data/java/native/.deps/Stem.Plo +1 -0
- data/java/native/.deps/TermIterator.Plo +1 -0
- data/java/native/.deps/WritableDatabase.Plo +1 -0
- data/java/native/.deps/org_xapian_XapianJNI.Plo +1 -0
- data/java/native/.deps/utils.Plo +1 -0
- data/java/native/Database.cc +222 -0
- data/java/native/Document.cc +173 -0
- data/java/native/ESet.cc +79 -0
- data/java/native/ESetIterator.cc +82 -0
- data/java/native/Enquire.cc +271 -0
- data/java/native/MSet.cc +169 -0
- data/java/native/MSetIterator.cc +107 -0
- data/java/native/Makefile +594 -0
- data/java/native/Makefile.am +51 -0
- data/java/native/Makefile.in +594 -0
- data/java/native/PositionIterator.cc +64 -0
- data/java/native/Query.cc +180 -0
- data/java/native/RSet.cc +98 -0
- data/java/native/Stem.cc +75 -0
- data/java/native/TermIterator.cc +107 -0
- data/java/native/WritableDatabase.cc +118 -0
- data/java/native/XapianObjectHolder.h +115 -0
- data/java/native/org_xapian_XapianJNI.cc +78 -0
- data/java/native/org_xapian_XapianJNI.h +1369 -0
- data/java/native/utils.cc +51 -0
- data/java/native/xapian_jni.h +116 -0
- data/java/org/xapian/Database.java +148 -0
- data/java/org/xapian/Document.java +135 -0
- data/java/org/xapian/ESet.java +66 -0
- data/java/org/xapian/ESetIterator.java +97 -0
- data/java/org/xapian/Enquire.java +136 -0
- data/java/org/xapian/ExpandDecider.java +30 -0
- data/java/org/xapian/MSet.java +104 -0
- data/java/org/xapian/MSetIterator.java +132 -0
- data/java/org/xapian/Makefile +580 -0
- data/java/org/xapian/Makefile.am +38 -0
- data/java/org/xapian/Makefile.in +580 -0
- data/java/org/xapian/MatchDecider.java +30 -0
- data/java/org/xapian/PositionIterator.java +89 -0
- data/java/org/xapian/Query.java +190 -0
- data/java/org/xapian/RSet.java +89 -0
- data/java/org/xapian/Stem.java +80 -0
- data/java/org/xapian/TermIterator.java +142 -0
- data/java/org/xapian/WritableDatabase.java +92 -0
- data/java/org/xapian/Xapian.java +114 -0
- data/java/org/xapian/XapianJNI.java +444 -0
- data/java/org/xapian/errors/AssertionError.java +40 -0
- data/java/org/xapian/errors/DatabaseCorruptError.java +40 -0
- data/java/org/xapian/errors/DatabaseError.java +40 -0
- data/java/org/xapian/errors/DatabaseLockError.java +40 -0
- data/java/org/xapian/errors/DatabaseModifiedError.java +40 -0
- data/java/org/xapian/errors/DatabaseOpeningError.java +40 -0
- data/java/org/xapian/errors/DocNotFoundError.java +40 -0
- data/java/org/xapian/errors/FeatureUnavailableError.java +40 -0
- data/java/org/xapian/errors/InternalError.java +40 -0
- data/java/org/xapian/errors/InvalidArgumentError.java +40 -0
- data/java/org/xapian/errors/InvalidOperationError.java +40 -0
- data/java/org/xapian/errors/LogicError.java +40 -0
- data/java/org/xapian/errors/Makefile +416 -0
- data/java/org/xapian/errors/Makefile.am +32 -0
- data/java/org/xapian/errors/Makefile.in +416 -0
- data/java/org/xapian/errors/NetworkError.java +40 -0
- data/java/org/xapian/errors/NetworkTimeoutError.java +40 -0
- data/java/org/xapian/errors/RangeError.java +40 -0
- data/java/org/xapian/errors/RuntimeError.java +40 -0
- data/java/org/xapian/errors/UnimplementedError.java +40 -0
- data/java/org/xapian/errors/XapianError.java +40 -0
- data/java/org/xapian/errors/XapianRuntimeError.java +49 -0
- data/java/org/xapian/examples/Makefile +391 -0
- data/java/org/xapian/examples/Makefile.am +8 -0
- data/java/org/xapian/examples/Makefile.in +391 -0
- data/java/org/xapian/examples/SimpleIndex.java +68 -0
- data/java/org/xapian/examples/SimpleSearch.java +71 -0
- data/java/run-java-test +6 -0
- data/libtool +7618 -0
- data/ltmain.sh +6956 -0
- data/mhs-xapian.gemspec +368 -0
- data/missing +378 -0
- data/php/.deps/xapian_wrap.Plo +1 -0
- data/php/Makefile +871 -0
- data/php/Makefile.am +82 -0
- data/php/Makefile.in +871 -0
- data/php/docs/Makefile +453 -0
- data/php/docs/Makefile.am +19 -0
- data/php/docs/Makefile.in +453 -0
- data/php/docs/examples/simpleexpand.php4 +108 -0
- data/php/docs/examples/simpleexpand.php5 +104 -0
- data/php/docs/examples/simpleindex.php4 +76 -0
- data/php/docs/examples/simpleindex.php5 +73 -0
- data/php/docs/examples/simplesearch.php4 +75 -0
- data/php/docs/examples/simplesearch.php5 +72 -0
- data/php/docs/index.html +313 -0
- data/php/except.i +98 -0
- data/php/php4/php_xapian.h +323 -0
- data/php/php4/xapian.php +32 -0
- data/php/php4/xapian_wrap.cc +27656 -0
- data/php/php5/php_xapian.h +319 -0
- data/php/php5/xapian.php +1566 -0
- data/php/php5/xapian_wrap.cc +24330 -0
- data/php/smoketest.php +246 -0
- data/php/smoketest4.php +84 -0
- data/php/smoketest5.php +79 -0
- data/php/util.i +187 -0
- data/python/.deps/xapian_wrap.Plo +1 -0
- data/python/Makefile +891 -0
- data/python/Makefile.am +105 -0
- data/python/Makefile.in +891 -0
- data/python/doccomments.i +5134 -0
- data/python/docs/Makefile +448 -0
- data/python/docs/Makefile.am +14 -0
- data/python/docs/Makefile.in +448 -0
- data/python/docs/examples/simpleexpand.py +98 -0
- data/python/docs/examples/simpleindex.py +65 -0
- data/python/docs/examples/simplematchdecider.py +78 -0
- data/python/docs/examples/simplesearch.py +65 -0
- data/python/docs/index.html +420 -0
- data/python/except.i +290 -0
- data/python/extra.i +1048 -0
- data/python/extracomments.i +28 -0
- data/python/generate-python-exceptions +189 -0
- data/python/generate-python-exceptions.in +189 -0
- data/python/modern/xapian.py +5662 -0
- data/python/modern/xapian_wrap.cc +35170 -0
- data/python/modern/xapian_wrap.h +244 -0
- data/python/pythontest.py +1110 -0
- data/python/smoketest.py +328 -0
- data/python/testsuite.py +382 -0
- data/python/util.i +517 -0
- data/ruby/.deps/xapian_wrap.Plo +494 -0
- data/ruby/.libs/_xapian.bundle +0 -0
- data/ruby/.libs/_xapian.bundle.dSYM/Contents/Info.plist +25 -0
- data/ruby/.libs/_xapian.bundle.dSYM/Contents/Resources/DWARF/_xapian.bundle +0 -0
- data/ruby/.libs/_xapian.la +35 -0
- data/ruby/.libs/_xapian.lai +35 -0
- data/ruby/Makefile +854 -0
- data/ruby/Makefile.am +62 -0
- data/ruby/Makefile.in +854 -0
- data/ruby/_xapian.la +35 -0
- data/ruby/docs/Makefile +487 -0
- data/ruby/docs/Makefile.am +50 -0
- data/ruby/docs/Makefile.in +487 -0
- data/ruby/docs/examples/simpleexpand.rb +98 -0
- data/ruby/docs/examples/simpleindex.rb +60 -0
- data/ruby/docs/examples/simplematchdecider.rb +74 -0
- data/ruby/docs/examples/simplesearch.rb +63 -0
- data/ruby/docs/index.html +197 -0
- data/ruby/smoketest.rb +211 -0
- data/ruby/util.i +232 -0
- data/ruby/xapian.rb +280 -0
- data/ruby/xapian_wrap.cc +25837 -0
- data/ruby/xapian_wrap.h +65 -0
- data/ruby/xapian_wrap.lo +12 -0
- data/skiptest +2 -0
- data/stamp-h1 +1 -0
- data/tcl8/.deps/xapian_wrap.Plo +1 -0
- data/tcl8/Makefile +835 -0
- data/tcl8/Makefile.am +49 -0
- data/tcl8/Makefile.in +835 -0
- data/tcl8/docs/Makefile +448 -0
- data/tcl8/docs/Makefile.am +14 -0
- data/tcl8/docs/Makefile.in +448 -0
- data/tcl8/docs/examples/simpleexpand.tcl +104 -0
- data/tcl8/docs/examples/simpleindex.tcl +68 -0
- data/tcl8/docs/examples/simplesearch.tcl +66 -0
- data/tcl8/docs/index.html +208 -0
- data/tcl8/except.i +48 -0
- data/tcl8/pkgIndex.tcl +1 -0
- data/tcl8/pkgIndex.tcl.in +1 -0
- data/tcl8/run-tcl-test +15 -0
- data/tcl8/runtest.tcl +29 -0
- data/tcl8/smoketest.tcl +155 -0
- data/tcl8/util.i +76 -0
- data/tcl8/xapian_wrap.cc +20900 -0
- data/xapian-bindings.spec +206 -0
- data/xapian-bindings.spec.in +206 -0
- data/xapian-version.h +1 -0
- data/xapian-version.h.in +1 -0
- data/xapian.i +939 -0
- metadata +395 -0
@@ -0,0 +1,214 @@
|
|
1
|
+
/* ----------------------------------------------------------------------------
|
2
|
+
* This file was automatically generated by SWIG (http://www.swig.org).
|
3
|
+
* Version 1.3.32
|
4
|
+
*
|
5
|
+
* Do not make changes to this file unless you know what you are doing--modify
|
6
|
+
* the SWIG interface file instead.
|
7
|
+
* ----------------------------------------------------------------------------- */
|
8
|
+
|
9
|
+
|
10
|
+
public class QueryParser {
|
11
|
+
private long swigCPtr;
|
12
|
+
protected boolean swigCMemOwn;
|
13
|
+
|
14
|
+
protected QueryParser(long cPtr, boolean cMemoryOwn) {
|
15
|
+
swigCMemOwn = cMemoryOwn;
|
16
|
+
swigCPtr = cPtr;
|
17
|
+
}
|
18
|
+
|
19
|
+
protected static long getCPtr(QueryParser obj) {
|
20
|
+
return (obj == null) ? 0 : obj.swigCPtr;
|
21
|
+
}
|
22
|
+
|
23
|
+
protected void finalize() {
|
24
|
+
delete();
|
25
|
+
}
|
26
|
+
|
27
|
+
public synchronized void delete() {
|
28
|
+
if(swigCPtr != 0 && swigCMemOwn) {
|
29
|
+
swigCMemOwn = false;
|
30
|
+
XapianJNI.delete_QueryParser(swigCPtr);
|
31
|
+
}
|
32
|
+
swigCPtr = 0;
|
33
|
+
}
|
34
|
+
|
35
|
+
public QueryParser() {
|
36
|
+
this(XapianJNI.new_QueryParser(), true);
|
37
|
+
}
|
38
|
+
|
39
|
+
public void setStemmer(Stem stemmer) {
|
40
|
+
XapianJNI.QueryParser_setStemmer(swigCPtr, this, Stem.getCPtr(stemmer), stemmer);
|
41
|
+
}
|
42
|
+
|
43
|
+
public void setStemmingStrategy(QueryParser.stem_strategy strategy) {
|
44
|
+
XapianJNI.QueryParser_setStemmingStrategy(swigCPtr, this, strategy.swigValue());
|
45
|
+
}
|
46
|
+
|
47
|
+
public void setStopper(Stopper stop) {
|
48
|
+
XapianJNI.QueryParser_setStopper__SWIG_0(swigCPtr, this, Stopper.getCPtr(stop), stop);
|
49
|
+
}
|
50
|
+
|
51
|
+
public void setStopper() {
|
52
|
+
XapianJNI.QueryParser_setStopper__SWIG_1(swigCPtr, this);
|
53
|
+
}
|
54
|
+
|
55
|
+
public void setDefaultOp(Query.op default_op) {
|
56
|
+
XapianJNI.QueryParser_setDefaultOp(swigCPtr, this, default_op.swigValue());
|
57
|
+
}
|
58
|
+
|
59
|
+
public Query.op getDefaultOp() {
|
60
|
+
return Query.op.swigToEnum(XapianJNI.QueryParser_getDefaultOp(swigCPtr, this));
|
61
|
+
}
|
62
|
+
|
63
|
+
public void setDatabase(Database db) {
|
64
|
+
XapianJNI.QueryParser_setDatabase(swigCPtr, this, Database.getCPtr(db), db);
|
65
|
+
}
|
66
|
+
|
67
|
+
public Query parseQuery(String query_string, long flags, String default_prefix) {
|
68
|
+
return new Query(XapianJNI.QueryParser_parseQuery__SWIG_0(swigCPtr, this, query_string, flags, default_prefix), true);
|
69
|
+
}
|
70
|
+
|
71
|
+
public Query parseQuery(String query_string, long flags) {
|
72
|
+
return new Query(XapianJNI.QueryParser_parseQuery__SWIG_1(swigCPtr, this, query_string, flags), true);
|
73
|
+
}
|
74
|
+
|
75
|
+
public Query parseQuery(String query_string) {
|
76
|
+
return new Query(XapianJNI.QueryParser_parseQuery__SWIG_2(swigCPtr, this, query_string), true);
|
77
|
+
}
|
78
|
+
|
79
|
+
public void addPrefix(String field, String prefix) {
|
80
|
+
XapianJNI.QueryParser_addPrefix(swigCPtr, this, field, prefix);
|
81
|
+
}
|
82
|
+
|
83
|
+
public void addBooleanPrefix(String field, String prefix) {
|
84
|
+
XapianJNI.QueryParser_addBooleanPrefix(swigCPtr, this, field, prefix);
|
85
|
+
}
|
86
|
+
|
87
|
+
public TermIterator stopListBegin() {
|
88
|
+
return new TermIterator(XapianJNI.QueryParser_stopListBegin(swigCPtr, this), true);
|
89
|
+
}
|
90
|
+
|
91
|
+
public TermIterator stopListEnd() {
|
92
|
+
return new TermIterator(XapianJNI.QueryParser_stopListEnd(swigCPtr, this), true);
|
93
|
+
}
|
94
|
+
|
95
|
+
public TermIterator unstemBegin(String term) {
|
96
|
+
return new TermIterator(XapianJNI.QueryParser_unstemBegin(swigCPtr, this, term), true);
|
97
|
+
}
|
98
|
+
|
99
|
+
public TermIterator unstemEnd(String arg0) {
|
100
|
+
return new TermIterator(XapianJNI.QueryParser_unstemEnd(swigCPtr, this, arg0), true);
|
101
|
+
}
|
102
|
+
|
103
|
+
public void addValuerangeprocessor(ValueRangeProcessor vrproc) {
|
104
|
+
XapianJNI.QueryParser_addValuerangeprocessor(swigCPtr, this, ValueRangeProcessor.getCPtr(vrproc), vrproc);
|
105
|
+
}
|
106
|
+
|
107
|
+
public String getCorrectedQueryString() {
|
108
|
+
return XapianJNI.QueryParser_getCorrectedQueryString(swigCPtr, this);
|
109
|
+
}
|
110
|
+
|
111
|
+
public String toString() {
|
112
|
+
return XapianJNI.QueryParser_toString(swigCPtr, this);
|
113
|
+
}
|
114
|
+
|
115
|
+
public final static class feature_flag {
|
116
|
+
public final static feature_flag FLAG_BOOLEAN = new feature_flag("FLAG_BOOLEAN", XapianJNI.QueryParser_FLAG_BOOLEAN_get());
|
117
|
+
public final static feature_flag FLAG_PHRASE = new feature_flag("FLAG_PHRASE", XapianJNI.QueryParser_FLAG_PHRASE_get());
|
118
|
+
public final static feature_flag FLAG_LOVEHATE = new feature_flag("FLAG_LOVEHATE", XapianJNI.QueryParser_FLAG_LOVEHATE_get());
|
119
|
+
public final static feature_flag FLAG_BOOLEAN_ANY_CASE = new feature_flag("FLAG_BOOLEAN_ANY_CASE", XapianJNI.QueryParser_FLAG_BOOLEAN_ANY_CASE_get());
|
120
|
+
public final static feature_flag FLAG_WILDCARD = new feature_flag("FLAG_WILDCARD", XapianJNI.QueryParser_FLAG_WILDCARD_get());
|
121
|
+
public final static feature_flag FLAG_PURE_NOT = new feature_flag("FLAG_PURE_NOT", XapianJNI.QueryParser_FLAG_PURE_NOT_get());
|
122
|
+
public final static feature_flag FLAG_PARTIAL = new feature_flag("FLAG_PARTIAL", XapianJNI.QueryParser_FLAG_PARTIAL_get());
|
123
|
+
public final static feature_flag FLAG_SPELLING_CORRECTION = new feature_flag("FLAG_SPELLING_CORRECTION", XapianJNI.QueryParser_FLAG_SPELLING_CORRECTION_get());
|
124
|
+
public final static feature_flag FLAG_SYNONYM = new feature_flag("FLAG_SYNONYM", XapianJNI.QueryParser_FLAG_SYNONYM_get());
|
125
|
+
public final static feature_flag FLAG_AUTO_SYNONYMS = new feature_flag("FLAG_AUTO_SYNONYMS", XapianJNI.QueryParser_FLAG_AUTO_SYNONYMS_get());
|
126
|
+
public final static feature_flag FLAG_AUTO_MULTIWORD_SYNONYMS = new feature_flag("FLAG_AUTO_MULTIWORD_SYNONYMS", XapianJNI.QueryParser_FLAG_AUTO_MULTIWORD_SYNONYMS_get());
|
127
|
+
public final static feature_flag FLAG_DEFAULT = new feature_flag("FLAG_DEFAULT", XapianJNI.QueryParser_FLAG_DEFAULT_get());
|
128
|
+
|
129
|
+
public final int swigValue() {
|
130
|
+
return swigValue;
|
131
|
+
}
|
132
|
+
|
133
|
+
public String toString() {
|
134
|
+
return swigName;
|
135
|
+
}
|
136
|
+
|
137
|
+
public static feature_flag swigToEnum(int swigValue) {
|
138
|
+
if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
|
139
|
+
return swigValues[swigValue];
|
140
|
+
for (int i = 0; i < swigValues.length; i++)
|
141
|
+
if (swigValues[i].swigValue == swigValue)
|
142
|
+
return swigValues[i];
|
143
|
+
throw new IllegalArgumentException("No enum " + feature_flag.class + " with value " + swigValue);
|
144
|
+
}
|
145
|
+
|
146
|
+
private feature_flag(String swigName) {
|
147
|
+
this.swigName = swigName;
|
148
|
+
this.swigValue = swigNext++;
|
149
|
+
}
|
150
|
+
|
151
|
+
private feature_flag(String swigName, int swigValue) {
|
152
|
+
this.swigName = swigName;
|
153
|
+
this.swigValue = swigValue;
|
154
|
+
swigNext = swigValue+1;
|
155
|
+
}
|
156
|
+
|
157
|
+
private feature_flag(String swigName, feature_flag swigEnum) {
|
158
|
+
this.swigName = swigName;
|
159
|
+
this.swigValue = swigEnum.swigValue;
|
160
|
+
swigNext = this.swigValue+1;
|
161
|
+
}
|
162
|
+
|
163
|
+
private static feature_flag[] swigValues = { FLAG_BOOLEAN, FLAG_PHRASE, FLAG_LOVEHATE, FLAG_BOOLEAN_ANY_CASE, FLAG_WILDCARD, FLAG_PURE_NOT, FLAG_PARTIAL, FLAG_SPELLING_CORRECTION, FLAG_SYNONYM, FLAG_AUTO_SYNONYMS, FLAG_AUTO_MULTIWORD_SYNONYMS, FLAG_DEFAULT };
|
164
|
+
private static int swigNext = 0;
|
165
|
+
private final int swigValue;
|
166
|
+
private final String swigName;
|
167
|
+
}
|
168
|
+
|
169
|
+
public final static class stem_strategy {
|
170
|
+
public final static stem_strategy STEM_NONE = new stem_strategy("STEM_NONE");
|
171
|
+
public final static stem_strategy STEM_SOME = new stem_strategy("STEM_SOME");
|
172
|
+
public final static stem_strategy STEM_ALL = new stem_strategy("STEM_ALL");
|
173
|
+
|
174
|
+
public final int swigValue() {
|
175
|
+
return swigValue;
|
176
|
+
}
|
177
|
+
|
178
|
+
public String toString() {
|
179
|
+
return swigName;
|
180
|
+
}
|
181
|
+
|
182
|
+
public static stem_strategy swigToEnum(int swigValue) {
|
183
|
+
if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
|
184
|
+
return swigValues[swigValue];
|
185
|
+
for (int i = 0; i < swigValues.length; i++)
|
186
|
+
if (swigValues[i].swigValue == swigValue)
|
187
|
+
return swigValues[i];
|
188
|
+
throw new IllegalArgumentException("No enum " + stem_strategy.class + " with value " + swigValue);
|
189
|
+
}
|
190
|
+
|
191
|
+
private stem_strategy(String swigName) {
|
192
|
+
this.swigName = swigName;
|
193
|
+
this.swigValue = swigNext++;
|
194
|
+
}
|
195
|
+
|
196
|
+
private stem_strategy(String swigName, int swigValue) {
|
197
|
+
this.swigName = swigName;
|
198
|
+
this.swigValue = swigValue;
|
199
|
+
swigNext = swigValue+1;
|
200
|
+
}
|
201
|
+
|
202
|
+
private stem_strategy(String swigName, stem_strategy swigEnum) {
|
203
|
+
this.swigName = swigName;
|
204
|
+
this.swigValue = swigEnum.swigValue;
|
205
|
+
swigNext = this.swigValue+1;
|
206
|
+
}
|
207
|
+
|
208
|
+
private static stem_strategy[] swigValues = { STEM_NONE, STEM_SOME, STEM_ALL };
|
209
|
+
private static int swigNext = 0;
|
210
|
+
private final int swigValue;
|
211
|
+
private final String swigName;
|
212
|
+
}
|
213
|
+
|
214
|
+
}
|
data/java-swig/RSet.java
ADDED
@@ -0,0 +1,79 @@
|
|
1
|
+
/* ----------------------------------------------------------------------------
|
2
|
+
* This file was automatically generated by SWIG (http://www.swig.org).
|
3
|
+
* Version 1.3.32
|
4
|
+
*
|
5
|
+
* Do not make changes to this file unless you know what you are doing--modify
|
6
|
+
* the SWIG interface file instead.
|
7
|
+
* ----------------------------------------------------------------------------- */
|
8
|
+
|
9
|
+
|
10
|
+
public class RSet {
|
11
|
+
private long swigCPtr;
|
12
|
+
protected boolean swigCMemOwn;
|
13
|
+
|
14
|
+
protected RSet(long cPtr, boolean cMemoryOwn) {
|
15
|
+
swigCMemOwn = cMemoryOwn;
|
16
|
+
swigCPtr = cPtr;
|
17
|
+
}
|
18
|
+
|
19
|
+
protected static long getCPtr(RSet obj) {
|
20
|
+
return (obj == null) ? 0 : obj.swigCPtr;
|
21
|
+
}
|
22
|
+
|
23
|
+
protected void finalize() {
|
24
|
+
delete();
|
25
|
+
}
|
26
|
+
|
27
|
+
public synchronized void delete() {
|
28
|
+
if(swigCPtr != 0 && swigCMemOwn) {
|
29
|
+
swigCMemOwn = false;
|
30
|
+
XapianJNI.delete_RSet(swigCPtr);
|
31
|
+
}
|
32
|
+
swigCPtr = 0;
|
33
|
+
}
|
34
|
+
|
35
|
+
public RSet(RSet other) {
|
36
|
+
this(XapianJNI.new_RSet__SWIG_0(RSet.getCPtr(other), other), true);
|
37
|
+
}
|
38
|
+
|
39
|
+
public RSet() {
|
40
|
+
this(XapianJNI.new_RSet__SWIG_1(), true);
|
41
|
+
}
|
42
|
+
|
43
|
+
public long size() {
|
44
|
+
return XapianJNI.RSet_size(swigCPtr, this);
|
45
|
+
}
|
46
|
+
|
47
|
+
public boolean empty() {
|
48
|
+
return XapianJNI.RSet_empty(swigCPtr, this);
|
49
|
+
}
|
50
|
+
|
51
|
+
public void addDocument(long did) {
|
52
|
+
XapianJNI.RSet_addDocument__SWIG_0(swigCPtr, this, did);
|
53
|
+
}
|
54
|
+
|
55
|
+
public void addDocument(MSetIterator i) {
|
56
|
+
XapianJNI.RSet_addDocument__SWIG_1(swigCPtr, this, MSetIterator.getCPtr(i), i);
|
57
|
+
}
|
58
|
+
|
59
|
+
public void removeDocument(long did) {
|
60
|
+
XapianJNI.RSet_removeDocument__SWIG_0(swigCPtr, this, did);
|
61
|
+
}
|
62
|
+
|
63
|
+
public void removeDocument(MSetIterator i) {
|
64
|
+
XapianJNI.RSet_removeDocument__SWIG_1(swigCPtr, this, MSetIterator.getCPtr(i), i);
|
65
|
+
}
|
66
|
+
|
67
|
+
public boolean contains(long did) {
|
68
|
+
return XapianJNI.RSet_contains__SWIG_0(swigCPtr, this, did);
|
69
|
+
}
|
70
|
+
|
71
|
+
public boolean contains(MSetIterator i) {
|
72
|
+
return XapianJNI.RSet_contains__SWIG_1(swigCPtr, this, MSetIterator.getCPtr(i), i);
|
73
|
+
}
|
74
|
+
|
75
|
+
public String toString() {
|
76
|
+
return XapianJNI.RSet_toString(swigCPtr, this);
|
77
|
+
}
|
78
|
+
|
79
|
+
}
|
@@ -0,0 +1,71 @@
|
|
1
|
+
/* ----------------------------------------------------------------------------
|
2
|
+
* This file was automatically generated by SWIG (http://www.swig.org).
|
3
|
+
* Version 1.3.32
|
4
|
+
*
|
5
|
+
* Do not make changes to this file unless you know what you are doing--modify
|
6
|
+
* the SWIG interface file instead.
|
7
|
+
* ----------------------------------------------------------------------------- */
|
8
|
+
|
9
|
+
|
10
|
+
public class Remote {
|
11
|
+
private long swigCPtr;
|
12
|
+
protected boolean swigCMemOwn;
|
13
|
+
|
14
|
+
protected Remote(long cPtr, boolean cMemoryOwn) {
|
15
|
+
swigCMemOwn = cMemoryOwn;
|
16
|
+
swigCPtr = cPtr;
|
17
|
+
}
|
18
|
+
|
19
|
+
protected static long getCPtr(Remote obj) {
|
20
|
+
return (obj == null) ? 0 : obj.swigCPtr;
|
21
|
+
}
|
22
|
+
|
23
|
+
public synchronized void delete() {
|
24
|
+
if(swigCPtr != 0 && swigCMemOwn) {
|
25
|
+
swigCMemOwn = false;
|
26
|
+
throw new UnsupportedOperationException("C++ destructor does not have public access");
|
27
|
+
}
|
28
|
+
swigCPtr = 0;
|
29
|
+
}
|
30
|
+
|
31
|
+
public static Database open(String host, long port, long timeout, long connect_timeout) {
|
32
|
+
return new Database(XapianJNI.Remote_open__SWIG_0(host, port, timeout, connect_timeout), true);
|
33
|
+
}
|
34
|
+
|
35
|
+
public static Database open(String host, long port, long timeout) {
|
36
|
+
return new Database(XapianJNI.Remote_open__SWIG_1(host, port, timeout), true);
|
37
|
+
}
|
38
|
+
|
39
|
+
public static Database open(String host, long port) {
|
40
|
+
return new Database(XapianJNI.Remote_open__SWIG_2(host, port), true);
|
41
|
+
}
|
42
|
+
|
43
|
+
public static WritableDatabase openWritable(String host, long port, long timeout, long connect_timeout) {
|
44
|
+
return new WritableDatabase(XapianJNI.Remote_openWritable__SWIG_0(host, port, timeout, connect_timeout), true);
|
45
|
+
}
|
46
|
+
|
47
|
+
public static WritableDatabase openWritable(String host, long port, long timeout) {
|
48
|
+
return new WritableDatabase(XapianJNI.Remote_openWritable__SWIG_1(host, port, timeout), true);
|
49
|
+
}
|
50
|
+
|
51
|
+
public static WritableDatabase openWritable(String host, long port) {
|
52
|
+
return new WritableDatabase(XapianJNI.Remote_openWritable__SWIG_2(host, port), true);
|
53
|
+
}
|
54
|
+
|
55
|
+
public static Database open(String program, String args, long timeout) {
|
56
|
+
return new Database(XapianJNI.Remote_open__SWIG_3(program, args, timeout), true);
|
57
|
+
}
|
58
|
+
|
59
|
+
public static Database open(String program, String args) {
|
60
|
+
return new Database(XapianJNI.Remote_open__SWIG_4(program, args), true);
|
61
|
+
}
|
62
|
+
|
63
|
+
public static WritableDatabase openWritable(String program, String args, long timeout) {
|
64
|
+
return new WritableDatabase(XapianJNI.Remote_openWritable__SWIG_3(program, args, timeout), true);
|
65
|
+
}
|
66
|
+
|
67
|
+
public static WritableDatabase openWritable(String program, String args) {
|
68
|
+
return new WritableDatabase(XapianJNI.Remote_openWritable__SWIG_4(program, args), true);
|
69
|
+
}
|
70
|
+
|
71
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/* ----------------------------------------------------------------------------
|
2
|
+
* This file was automatically generated by SWIG (http://www.swig.org).
|
3
|
+
* Version 1.3.32
|
4
|
+
*
|
5
|
+
* Do not make changes to this file unless you know what you are doing--modify
|
6
|
+
* the SWIG interface file instead.
|
7
|
+
* ----------------------------------------------------------------------------- */
|
8
|
+
|
9
|
+
|
10
|
+
public class SWIGTYPE_p_std__string {
|
11
|
+
private long swigCPtr;
|
12
|
+
|
13
|
+
protected SWIGTYPE_p_std__string(long cPtr, boolean futureUse) {
|
14
|
+
swigCPtr = cPtr;
|
15
|
+
}
|
16
|
+
|
17
|
+
protected SWIGTYPE_p_std__string() {
|
18
|
+
swigCPtr = 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
protected static long getCPtr(SWIGTYPE_p_std__string obj) {
|
22
|
+
return (obj == null) ? 0 : obj.swigCPtr;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
@@ -0,0 +1,51 @@
|
|
1
|
+
/* ----------------------------------------------------------------------------
|
2
|
+
* This file was automatically generated by SWIG (http://www.swig.org).
|
3
|
+
* Version 1.3.32
|
4
|
+
*
|
5
|
+
* Do not make changes to this file unless you know what you are doing--modify
|
6
|
+
* the SWIG interface file instead.
|
7
|
+
* ----------------------------------------------------------------------------- */
|
8
|
+
|
9
|
+
|
10
|
+
public class SimpleStopper extends Stopper {
|
11
|
+
private long swigCPtr;
|
12
|
+
|
13
|
+
protected SimpleStopper(long cPtr, boolean cMemoryOwn) {
|
14
|
+
super(XapianJNI.SWIGSimpleStopperUpcast(cPtr), cMemoryOwn);
|
15
|
+
swigCPtr = cPtr;
|
16
|
+
}
|
17
|
+
|
18
|
+
protected static long getCPtr(SimpleStopper obj) {
|
19
|
+
return (obj == null) ? 0 : obj.swigCPtr;
|
20
|
+
}
|
21
|
+
|
22
|
+
protected void finalize() {
|
23
|
+
delete();
|
24
|
+
}
|
25
|
+
|
26
|
+
public synchronized void delete() {
|
27
|
+
if(swigCPtr != 0 && swigCMemOwn) {
|
28
|
+
swigCMemOwn = false;
|
29
|
+
XapianJNI.delete_SimpleStopper(swigCPtr);
|
30
|
+
}
|
31
|
+
swigCPtr = 0;
|
32
|
+
super.delete();
|
33
|
+
}
|
34
|
+
|
35
|
+
public SimpleStopper() {
|
36
|
+
this(XapianJNI.new_SimpleStopper(), true);
|
37
|
+
}
|
38
|
+
|
39
|
+
public void add(String word) {
|
40
|
+
XapianJNI.SimpleStopper_add(swigCPtr, this, word);
|
41
|
+
}
|
42
|
+
|
43
|
+
public boolean apply(String term) {
|
44
|
+
return XapianJNI.SimpleStopper_apply(swigCPtr, this, term);
|
45
|
+
}
|
46
|
+
|
47
|
+
public String toString() {
|
48
|
+
return XapianJNI.SimpleStopper_toString(swigCPtr, this);
|
49
|
+
}
|
50
|
+
|
51
|
+
}
|
@@ -0,0 +1,161 @@
|
|
1
|
+
// Simple test that we can use xapian from java
|
2
|
+
//
|
3
|
+
// Copyright (C) 2005,2006,2007 Olly Betts
|
4
|
+
//
|
5
|
+
// This program is free software; you can redistribute it and/or
|
6
|
+
// modify it under the terms of the GNU General Public License as
|
7
|
+
// published by the Free Software Foundation; either version 2 of the
|
8
|
+
// License, or (at your option) any later version.
|
9
|
+
//
|
10
|
+
// This program is distributed in the hope that it will be useful,
|
11
|
+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
+
// GNU General Public License for more details.
|
14
|
+
//
|
15
|
+
// You should have received a copy of the GNU General Public License
|
16
|
+
// along with this program; if not, write to the Free Software
|
17
|
+
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
|
18
|
+
// USA
|
19
|
+
|
20
|
+
//import org.xapian.*;
|
21
|
+
//import org.xapian.errors.*;
|
22
|
+
|
23
|
+
// FIXME "implements" not "extends" in JNI Java API
|
24
|
+
class MyMatchDecider extends MatchDecider {
|
25
|
+
public boolean accept(Document d) {
|
26
|
+
// NB It's not normally appropriate to call getData() in a MatchDecider
|
27
|
+
// but we do it here to make sure we don't get an empty document.
|
28
|
+
/* try { */
|
29
|
+
return d.getData() == "";
|
30
|
+
/*
|
31
|
+
} catch (XapianError e) {
|
32
|
+
return true;
|
33
|
+
}
|
34
|
+
*/
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
// FIXME "implements" not "extends" in JNI Java API
|
39
|
+
class MyExpandDecider extends ExpandDecider {
|
40
|
+
public boolean accept(String s) { return s.substring(0, 1) != "a"; }
|
41
|
+
}
|
42
|
+
|
43
|
+
public class SmokeTest {
|
44
|
+
public static void main(String[] args) throws Exception {
|
45
|
+
try {
|
46
|
+
Stem stem = new Stem("english");
|
47
|
+
if (!stem.toString().equals("Xapian::Stem(english)")) {
|
48
|
+
System.err.println("Unexpected stem.toString()");
|
49
|
+
System.exit(1);
|
50
|
+
}
|
51
|
+
Document doc = new Document();
|
52
|
+
doc.setData("is there anybody out there?");
|
53
|
+
doc.addTerm("XYzzy");
|
54
|
+
doc.addPosting(stem.apply("is"), 1);
|
55
|
+
doc.addPosting(stem.apply("there"), 2);
|
56
|
+
doc.addPosting(stem.apply("anybody"), 3);
|
57
|
+
doc.addPosting(stem.apply("out"), 4);
|
58
|
+
doc.addPosting(stem.apply("there"), 5);
|
59
|
+
// FIXME: was WritableDatabase db = Xapian.InMemory.open();
|
60
|
+
WritableDatabase db = InMemory.open();
|
61
|
+
db.addDocument(doc);
|
62
|
+
if (db.getDocCount() != 1) {
|
63
|
+
System.err.println("Unexpected db.getDocCount()");
|
64
|
+
System.exit(1);
|
65
|
+
}
|
66
|
+
|
67
|
+
String[] terms = { "smoke", "test", "terms" };
|
68
|
+
Query query = new Query(Query.OP_OR, terms);
|
69
|
+
if (!query.toString().equals("Xapian::Query((smoke OR test OR terms))")) {
|
70
|
+
System.err.println("Unexpected query.toString()");
|
71
|
+
System.exit(1);
|
72
|
+
}
|
73
|
+
Query[] queries = { new Query("smoke"), query, new Query("string") };
|
74
|
+
Query query2 = new Query(Query.OP_XOR, queries);
|
75
|
+
if (!query2.toString().equals("Xapian::Query((smoke XOR (smoke OR test OR terms) XOR string))")) {
|
76
|
+
System.err.println("Unexpected query2.toString()");
|
77
|
+
System.exit(1);
|
78
|
+
}
|
79
|
+
String[] subqs = { "a", "b" };
|
80
|
+
Query query3 = new Query(Query.OP_OR, subqs);
|
81
|
+
if (!query3.toString().equals("Xapian::Query((a OR b))")) {
|
82
|
+
System.err.println("Unexpected query3.toString()");
|
83
|
+
System.exit(1);
|
84
|
+
}
|
85
|
+
Enquire enq = new Enquire(db);
|
86
|
+
enq.setQuery(new Query(Query.OP_OR, "there", "is"));
|
87
|
+
MSet mset = enq.getMSet(0, 10);
|
88
|
+
if (mset.size() != 1) {
|
89
|
+
System.err.println("Unexpected mset.size()");
|
90
|
+
System.exit(1);
|
91
|
+
}
|
92
|
+
/*
|
93
|
+
String term_str = "";
|
94
|
+
TermIterator itor = enq.getMatchingTerms(mset.getElement(0));
|
95
|
+
while (itor.hasNext()) {
|
96
|
+
term_str += itor.next();
|
97
|
+
if (itor.hasNext()) term_str += ' ';
|
98
|
+
}
|
99
|
+
if (!term_str.equals("is there")) {
|
100
|
+
System.err.println("Unexpected term_str");
|
101
|
+
System.exit(1);
|
102
|
+
}
|
103
|
+
*/
|
104
|
+
/*
|
105
|
+
boolean ok = false;
|
106
|
+
try {
|
107
|
+
Database db_fail = new Database("NOsuChdaTabASe");
|
108
|
+
// Ignore the return value.
|
109
|
+
db_fail.getDocCount();
|
110
|
+
} catch (DatabaseOpeningError e) {
|
111
|
+
ok = true;
|
112
|
+
}
|
113
|
+
if (!ok) {
|
114
|
+
System.err.println("Managed to open non-existent database");
|
115
|
+
System.exit(1);
|
116
|
+
}
|
117
|
+
*/
|
118
|
+
/*
|
119
|
+
if (Query.OP_ELITE_SET != 10) {
|
120
|
+
System.err.println("OP_ELITE_SET is " + Query.OP_ELITE_SET + " not 10");
|
121
|
+
System.exit(1);
|
122
|
+
}
|
123
|
+
*/
|
124
|
+
RSet rset = new RSet();
|
125
|
+
rset.addDocument(1);
|
126
|
+
ESet eset = enq.getESet(10, rset, new MyExpandDecider());
|
127
|
+
/*
|
128
|
+
ESetIterator eit = eset.iterator();
|
129
|
+
int count = 0;
|
130
|
+
while (eit.hasNext()) {
|
131
|
+
if (eit.getTerm().substring(0, 1) == "a") {
|
132
|
+
System.err.println("MyExpandDecider wasn't used");
|
133
|
+
System.exit(1);
|
134
|
+
}
|
135
|
+
++count;
|
136
|
+
eit.next();
|
137
|
+
}
|
138
|
+
if (count != eset.size()) {
|
139
|
+
System.err.println("ESet.size() mismatched number of terms returned by ESetIterator");
|
140
|
+
System.exit(1);
|
141
|
+
}
|
142
|
+
*/
|
143
|
+
|
144
|
+
/*
|
145
|
+
MSet mset2 = enq.getMSet(0, 10, null, new MyMatchDecider());
|
146
|
+
if (mset2.size() > 0) {
|
147
|
+
System.err.println("MyMatchDecider wasn't used");
|
148
|
+
System.exit(1);
|
149
|
+
}
|
150
|
+
*/
|
151
|
+
|
152
|
+
if (!enq.getQuery().toString().equals("Xapian::Query((there OR is))")) {
|
153
|
+
System.err.println("Enquire::getQuery() returned the wrong query: " + enq.getQuery().toString());
|
154
|
+
System.exit(1);
|
155
|
+
}
|
156
|
+
} catch (Exception e) {
|
157
|
+
System.err.println("Caught unexpected exception " + e.toString());
|
158
|
+
System.exit(1);
|
159
|
+
}
|
160
|
+
}
|
161
|
+
}
|