Added some convenience constructors

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@600986 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Grant Ingersoll 2007-12-04 15:56:57 +00:00
parent a8c399cc52
commit 72bb91f4ee
1 changed files with 8 additions and 0 deletions

View File

@ -21,6 +21,14 @@ public class SinkTokenizer extends Tokenizer {
if (this.lst == null) this.lst = new ArrayList/*<Token>*/();
}
public SinkTokenizer() {
this.lst = new ArrayList();
}
public SinkTokenizer(int initCap){
this.lst = new ArrayList(initCap);
}
/**
* Get the tokens in the internal List.
* <p/>