lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r803668 - /lucene/java/trunk/src/java/org/apache/lucene/analysis/Tokenizer.java
Date Wed, 12 Aug 2009 19:01:44 GMT
Author: yonik
Date: Wed Aug 12 19:01:43 2009
New Revision: 803668

URL: http://svn.apache.org/viewvc?rev=803668&view=rev
Log:
LUCENE-1804: allow Tokenizer to specify it's AttributeSource

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/analysis/Tokenizer.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/analysis/Tokenizer.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/analysis/Tokenizer.java?rev=803668&r1=803667&r2=803668&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/analysis/Tokenizer.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/analysis/Tokenizer.java Wed Aug 12 19:01:43
2009
@@ -17,6 +17,8 @@
  * limitations under the License.
  */
 
+import org.apache.lucene.util.AttributeSource;
+
 import java.io.Reader;
 import java.io.IOException;
 
@@ -65,7 +67,12 @@
     super(factory);
     this.input = input;
   }
-  
+
+  /** Construct a token stream processing the given input using the given AttributeSource.
*/
+  protected Tokenizer(AttributeSource source) {
+    super(source);
+  }
+
   /** By default, closes the input Reader. */
   public void close() throws IOException {
     input.close();



Mime
View raw message