lucene-core-2.9.4-dev

    this(Version.LUCENE_24, stopwords);
  }
  
  public StandardAnalyzer(Version matchVersion, File stopwords)
    throws IOException
  {
    stopSet = WordlistLoader.getWordSet(stopwords);
    init(matchVersion);
  }
  
  /**
   * @deprecated
   */
  public StandardAnalyzer(Reader stopwords)
    throws IOException
  {
    this(Version.LUCENE_24, stopwords);
  }
  
  public StandardAnalyzer(Version matchVersion, Reader stopwords)
    throws IOException
  {
    stopSet = WordlistLoader.getWordSet(stopwords);
    init(matchVersion);
  }
  
  /**
   * @deprecated
   */
  public StandardAnalyzer(boolean replaceInvalidAcronym)
  {
    this(Version.LUCENE_24, STOP_WORDS_SET);
    
    useDefaultStopPositionIncrements = true;
  }
  
  /**
   * @deprecated
   */
  public StandardAnalyzer(Reader stopwords, boolean replaceInvalidAcronym)
    throws IOException
  {
    this(Version.LUCENE_24, stopwords);
  }
  
  /**
   * @deprecated
   */
  public StandardAnalyzer(File stopwords, boolean replaceInvalidAcronym)
    throws IOException
  {
    this(Version.LUCENE_24, stopwords);
  }
  
  /**
   * @deprecated
   */
  public StandardAnalyzer(String[] stopwords, boolean replaceInvalidAcronym)
    throws IOException
  {
    this(Version.LUCENE_24, StopFilter.makeStopSet(stopwords));
  }
  
  /**
   * @deprecated
   */
  public StandardAnalyzer(Set stopwords, boolean replaceInvalidAcronym)
    throws IOException
  {
    this(Version.LUCENE_24, stopwords);
  }
  
  private final void init(Version matchVersion)
  {
    setOverridesTokenStreamMethod(StandardAnalyzer.class);
    if (matchVersion.onOrAfter(Version.LUCENE_29)) {
      enableStopPositionIncrements = true;
    } else {
      useDefaultStopPositionIncrements = true;
    }
    if (matchVersion.onOrAfter(Version.LUCENE_24)) {
      replaceInvalidAcronym = defaultReplaceInvalidAcronym;
    } else {
      replaceInvalidAcronym = false;
    }
  }
  
  public TokenStream tokenStream(String fieldName, Reader reader)
  {
    StandardTokenizer tokenStream = new StandardTokenizer(reader, replaceInvalidAcronym);
    tokenStream.setMaxTokenLength(maxTokenLength);
    TokenStream result = new StandardFilter(tokenStream);
    result = new LowerCaseFilter(result);
    if (useDefaultStopPositionIncrements) {
      result = new StopFilter(result, stopSet);
    } else {
      result = new StopFilter(enableStopPositionIncrements, result, stopSet);
    }
    return result;
  }
  
  private static final class SavedStreams
  {
    StandardTokenizer tokenStream;
    TokenStream filteredTokenStream;
    
    private SavedStreams() {}
    
    SavedStreams(StandardAnalyzer.1 x0)
    {
      this();
    }
  }
  
  private int maxTokenLength = 255;
  
  public void setMaxTokenLength(int length)
  {
    maxTokenLength = length;
  }
  
  public int getMaxTokenLength()
  {
    return maxTokenLength;
  }
  
  /**
   * @deprecated
   */
  public TokenStream reusableTokenStream(String fieldName, Reader reader)
    throws IOException
  {
    if (overridesTokenStreamMethod) {
      return tokenStream(fieldName, reader);
    }
    SavedStreams streams = (SavedStreams)getPreviousTokenStream();
    if (streams == null)
    {
      streams = new SavedStreams(null);
      setPreviousTokenStream(streams);
      tokenStream = new StandardTokenizer(reader);
      filteredTokenStream = new StandardFilter(tokenStream);
      filteredTokenStream = new LowerCaseFilter(filteredTokenStream);
      if (useDefaultStopPositionIncrements) {
        filteredTokenStream = new StopFilter(filteredTokenStream, stopSet);
      } else {
        filteredTokenStream = new StopFilter(enableStopPositionIncrements, filteredTokenStream, stopSet);
      }
    }
    else
    {
      tokenStream.reset(reader);
    }
    tokenStream.setMaxTokenLength(maxTokenLength);
    
    tokenStream.setReplaceInvalidAcronym(replaceInvalidAcronym);
    
    return filteredTokenStream;
  }
  
  /**
   * @deprecated
   */
  public boolean isReplaceInvalidAcronym()
  {
    return replaceInvalidAcronym;
  }
  
  /**
   * @deprecated
   */
  public void setReplaceInvalidAcronym(boolean replaceInvalidAcronym)
  {
    this.replaceInvalidAcronym = replaceInvalidAcronym;
  }
}

/* Location:
 * Qualified Name:     org.apache.lucene.analysis.standard.StandardAnalyzer
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package org.apache.lucene.analysis.standard;

import java.io.IOException;
import org.apache.lucene.analysis.TokenFilter;
import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.analysis.tokenattributes.TermAttribute;
import org.apache.lucene.analysis.tokenattributes.TypeAttribute;

public final class StandardFilter
  extends TokenFilter
{
  public StandardFilter(TokenStream in)
  {
    super(in);
    termAtt = ((TermAttribute)addAttribute(TermAttribute.class));
    typeAtt = ((TypeAttribute)addAttribute(TypeAttribute.class));
  }
  
  private static final String APOSTROPHE_TYPE = StandardTokenizerImpl.TOKEN_TYPES[1];
  private static final String ACRONYM_TYPE = StandardTokenizerImpl.TOKEN_TYPES[2];
  private TypeAttribute typeAtt;
  private TermAttribute termAtt;
  
  public final boolean incrementToken()
    throws IOException
  {
    if (!input.incrementToken()) {
      return false;
    }
    char[] buffer = termAtt.termBuffer();
    int bufferLength = termAtt.termLength();
    String type = typeAtt.type();
    if ((type == APOSTROPHE_TYPE) && (bufferLength >= 2) && (buffer[(bufferLength - 2)] == '\'') && ((buffer[(bufferLength - 1)] == 's') || (buffer[(bufferLength - 1)] == 'S')))
    {
      termAtt.setTermLength(bufferLength - 2);
    }
    else if (type == ACRONYM_TYPE)
    {
      int upto = 0;
      for (int i = 0; i < bufferLength; i++)
      {
        char c = buffer[i];
        if (c != '.') {
          buffer[(upto++)] = c;
        }
      }
      termAtt.setTermLength(upto);
    }
    return true;
  }
}

/* Location:
 * Qualified Name:     org.apache.lucene.analysis.standard.StandardFilter
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package org.apache.lucene.analysis.standard;

import java.io.IOException;
import java.io.Reader;
import org.apache.lucene.analysis.Token;
import org.apache.lucene.analysis.Tokenizer;
import org.apache.lucene.analysis.tokenattributes.OffsetAttribute;
import org.apache.lucene.analysis.tokenattributes.PositionIncrementAttribute;
import org.apache.lucene.analysis.tokenattributes.TermAttribute;
import org.apache.lucene.analysis.tokenattributes.TypeAttribute;
import org.apache.lucene.util.AttributeSource;
import org.apache.lucene.util.AttributeSource.AttributeFactory;
import org.apache.lucene.util.Version;

public class StandardTokenizer
  extends Tokenizer
{
  private final StandardTokenizerImpl scanner;
  public static final int ALPHANUM = 0;
  public static final int APOSTROPHE = 1;
  public static final int ACRONYM = 2;
  public static final int COMPANY = 3;
  public static final int EMAIL = 4;
  public static final int HOST = 5;
  public static final int NUM = 6;
  public static final int CJ = 7;
  /**
   * @deprecated
   */
  public static final int ACRONYM_DEP = 8;
  public static final String[] TOKEN_TYPES = { "<ALPHANUM>", "<APOSTROPHE>", "<ACRONYM>", "<COMPANY>", "<EMAIL>", "<HOST>", "<NUM>", "<CJ>", "<ACRONYM_DEP>" };
  /**
   * @deprecated
   */
  public static final String[] tokenImage = TOKEN_TYPES;
  /**
   * @deprecated
   */
  private boolean replaceInvalidAcronym;
  private int maxTokenLength = 255;
  private TermAttribute termAtt;
  private OffsetAttribute offsetAtt;
  private PositionIncrementAttribute posIncrAtt;
  private TypeAttribute typeAtt;
  
  public void setMaxTokenLength(int length)
  {
    maxTokenLength = length;
  }
  
  public int getMaxTokenLength()
  {
    return maxTokenLength;
  }
  
  /**
   * @deprecated
   */
  public StandardTokenizer(Reader input)
  {
    this(Version.LUCENE_24, input);
  }
  
  /**
   * @deprecated
   */
  public StandardTokenizer(Reader input, boolean replaceInvalidAcronym)
  {
    scanner = new StandardTokenizerImpl(input);
    init(input, replaceInvalidAcronym);
  }
  
  public StandardTokenizer(Version matchVersion, Reader input)
  {
    scanner = new StandardTokenizerImpl(input);
    init(input, matchVersion);
  }
  
  /**
   * @deprecated
   */
  public StandardTokenizer(AttributeSource source, Reader input, boolean replaceInvalidAcronym)
  {
    super(source);
    scanner = new StandardTokenizerImpl(input);
    init(input, replaceInvalidAcronym);
  }
  
  public StandardTokenizer(Version matchVersion, AttributeSource source, Reader input)
  {
    super(source);
    scanner = new StandardTokenizerImpl(input);
    init(input, matchVersion);
  }
  
  /**
   * @deprecated
   */
  public StandardTokenizer(AttributeSource.AttributeFactory factory, Reader input, boolean replaceInvalidAcronym)
  {
    super(factory);
    scanner = new StandardTokenizerImpl(input);
    init(input, replaceInvalidAcronym);
  }
  
  public StandardTokenizer(Version matchVersion, AttributeSource.AttributeFactory factory, Reader input)
  {
    super(factory);
    scanner = new StandardTokenizerImpl(input);
    init(input, matchVersion);
  }
  
  private void init(Reader input, boolean replaceInvalidAcronym)
  {
    this.replaceInvalidAcronym = replaceInvalidAcronym;
    this.input = input;
    termAtt = ((TermAttribute)addAttribute(TermAttribute.class));
    offsetAtt = ((OffsetAttribute)addAttribute(OffsetAttribute.class));
    posIncrAtt = ((PositionIncrementAttribute)addAttribute(PositionIncrementAttribute.class));
    typeAtt = ((TypeAttribute)addAttribute(TypeAttribute.class));
  }
  
  private void init(Reader input, Version matchVersion)
  {
    if (matchVersion.onOrAfter(Version.LUCENE_24)) {
      init(input, true);
    } else {
      init(input, false);
    }
  }
  
  public final boolean incrementToken()
    throws IOException
  {
    clearAttributes();
    int posIncr = 1;
    for (;;)
    {
      int tokenType = scanner.getNextToken();
      if (tokenType == -1) {
        return false;
      }
      if (scanner.yylength() <= maxTokenLength)
      {
        posIncrAtt.setPositionIncrement(posIncr);
        scanner.getText(termAtt);
        int start = scanner.yychar();
        offsetAtt.setOffset(correctOffset(start), correctOffset(start + termAtt.termLength()));
        if (tokenType == 8)
        {
          if (replaceInvalidAcronym)
          {
            typeAtt.setType(StandardTokenizerImpl.TOKEN_TYPES[5]);
            termAtt.setTermLength(termAtt.termLength() - 1);
          }
          else
          {
            typeAtt.setType(StandardTokenizerImpl.TOKEN_TYPES[2]);
          }
        }
        else {
          typeAtt.setType(StandardTokenizerImpl.TOKEN_TYPES[tokenType]);
        }
        return true;
      }
      posIncr++;
    }
  }
  
  public final void end()
  {
    int finalOffset = correctOffset(scanner.yychar() + scanner.yylength());
    offsetAtt.setOffset(finalOffset, finalOffset);
  }
  
  /**
   * @deprecated
   */
  public final Token next(Token reusableToken)
    throws IOException
  {
    return super.next(reusableToken);
  }
  
  /**
   * @deprecated
   */
  public final Token next()
    throws IOException
  {
    return super.next();
  }
  
  public void reset(Reader reader)
    throws IOException
  {
    super.reset(reader);
    scanner.reset(reader);
  }
  
  /**
   * @deprecated
   */
  public boolean isReplaceInvalidAcronym()
  {
    return replaceInvalidAcronym;
  }
  
  /**
   * @deprecated
   */
  public void setReplaceInvalidAcronym(boolean replaceInvalidAcronym)
  {
    this.replaceInvalidAcronym = replaceInvalidAcronym;
  }
}

/* Location:
 * Qualified Name:     org.apache.lucene.analysis.standard.StandardTokenizer
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package org.apache.lucene.analysis.standard;

import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import org.apache.lucene.analysis.Token;
import org.apache.lucene.analysis.tokenattributes.TermAttribute;

class StandardTokenizerImpl
{
  public static final int YYEOF = -1;
  private static final int ZZ_BUFFERSIZE = 16384;
  public static final int YYINITIAL = 0;
  private static final String ZZ_CMAP_PACKED = "\t\000\001\000\001\r\001\000\001\000\001\f\022\000\001\000\005\000\001\005\001\003\004\000\001\t\001\007\001\004\001\t\n\002\006\000\001\006\032\n\004\000\001\b\001\000\032\n/\000\001\n\n\000\001\n\004\000\001\n\005\000\027\n\001\000\037\n\001\000?\n\002\000\022\n\034\000^\n\002\000\t\n\002\000\007\n\016\000\002\n\016\000\005\n\t\000\001\n?\000\001\n\013\000\001\n\001\000\003\n\001\000\001\n\001\000\024\n\001\000,\n\001\000\b\n\002\000\032\n\f\000?\n\n\0009\n\002\000\002\n\002\000\002\n\003\000&\n\002\000\002\n7\000&\n\002\000\001\n\007\000'\nH\000\033\n\005\000\003\n.\000\032\n\005\000\013\n\025\000\n\002\007\000c\n\001\000\001\n\017\000\002\n\t\000\n\002\003\n\023\000\001\n\001\000\033\nS\000&\n?\0005\n\003\000\001\n\022\000\001\n\007\000\n\n\004\000\n\002\025\000\b\n\002\000\002\n\002\000\026\n\001\000\007\n\001\000\001\n\003\000\004\n\"\000\002\n\001\000\003\n\004\000\n\002\002\n\023\000\006\n\004\000\002\n\002\000\026\n\001\000\007\n\001\000\002\n\001\000\002\n\001\000\002\n\037\000\004\n\001\000\001\n\007\000\n\002\002\000\003\n\020\000\007\n\001\000\001\n\001\000\003\n\001\000\026\n\001\000\007\n\001\000\002\n\001\000\005\n\003\000\001\n\022\000\001\n\017\000\001\n\005\000\n\002\025\000\b\n\002\000\002\n\002\000\026\n\001\000\007\n\001\000\002\n\002\000\004\n\003\000\001\n\036\000\002\n\001\000\003\n\004\000\n\002\025\000\006\n\003\000\003\n\001\000\004\n\003\000\002\n\001\000\001\n\001\000\002\n\003\000\002\n\003\000\003\n\003\000\b\n\001\000\003\n-\000\t\002\025\000\b\n\001\000\003\n\001\000\027\n\001\000\n\n\001\000\005\n&\000\002\n\004\000\n\002\025\000\b\n\001\000\003\n\001\000\027\n\001\000\n\n\001\000\005\n$\000\001\n\001\000\002\n\004\000\n\002\025\000\b\n\001\000\003\n\001\000\027\n\001\000\020\n&\000\002\n\004\000\n\002\025\000\022\n\003\000\030\n\001\000\t\n\001\000\001\n\002\000\007\n9\000\001\0010\n\001\001\002\n\f\001\007\n\t\001\n\002'\000\002\n\001\000\001\n\002\000\002\n\001\000\001\n\002\000\001\n\006\000\004\n\001\000\007\n\001\000\003\n\001\000\001\n\001\000\001\n\002\000\002\n\001\000\004\n\001\000\002\n\t\000\001\n\002\000\005\n\001\000\001\n\t\000\n\002\002\000\002\n\"\000\001\n\037\000\n\002\026\000\b\n\001\000\"\n\035\000\004\nt\000\"\n\001\000\005\n\001\000\002\n\025\000\n\002\006\000\006\nJ\000&\n\n\000'\n\t\000Z\n\005\000D\n\005\000R\n\006\000\007\n\001\000?\n\001\000\001\n\001\000\004\n\002\000\007\n\001\000\001\n\001\000\004\n\002\000'\n\001\000\001\n\001\000\004\n\002\000\037\n\001\000\001\n\001\000\004\n\002\000\007\n\001\000\001\n\001\000\004\n\002\000\007\n\001\000\007\n\001\000\027\n\001\000\037\n\001\000\001\n\001\000\004\n\002\000\007\n\001\000'\n\001\000\023\n\016\000\t\002.\000U\n\f\000?\n\002\000\b\n\n\000\032\n\005\000K\n?\0004\n,\000\n\002&\000\n\002\006\000X\n\b\000)\n?\000?\n\004\000Z\n\006\000\026\n\002\000\006\n\002\000&\n\002\000\006\n\002\000\b\n\001\000\001\n\001\000\001\n\001\000\001\n\001\000\037\n\002\0005\n\001\000\007\n\001\000\001\n\003\000\003\n\001\000\007\n\003\000\004\n\002\000\006\n\004\000\r\n\005\000\003\n\001\000\007\n?\000\001\n?\000\001\n\004\000\001\n\002\000\n\n\001\000\001\n\003\000\005\n\006\000\001\n\001\000\001\n\001\000\001\n\001\000\004\n\001\000\003\n\001\000\007\n?\000\002\n*\000\005\n\n\000\001\013T\013\b\013\002\013\002\013Z\013\001\013\003\013\006\013(\013\003\013\001\000^\n\021\000\030\n8\000\020\013?\000?\013?\000?\013\n\013@\000?\013Z\013?\n?\000?\n?\000?\013�\013\007\n\f\000\005\n\005\000\001\n\001\000\n\n\001\000\r\n\001\000\005\n\001\000\001\n\001\000\002\n\001\000\002\n\001\000l\n!\000?\n\022\000@\n\002\0006\n(\000\f\nt\000\003\n\001\000\001\n\001\000?\n\023\000\n\002\007\000\032\n\006\000\032\n\n\000\001\013:\013\037\n\003\000\006\n\002\000\006\n\002\000\006\n\002\000\003\n#\000";
  private static final char[] ZZ_CMAP = zzUnpackCMap("\t\000\001\000\001\r\001\000\001\000\001\f\022\000\001\000\005\000\001\005\001\003\004\000\001\t\001\007\001\004\001\t\n\002\006\000\001\006\032\n\004\000\001\b\001\000\032\n/\000\001\n\n\000\001\n\004\000\001\n\005\000\027\n\001\000\037\n\001\000?\n\002\000\022\n\034\000^\n\002\000\t\n\002\000\007\n\016\000\002\n\016\000\005\n\t\000\001\n?\000\001\n\013\000\001\n\001\000\003\n\001\000\001\n\001\000\024\n\001\000,\n\001\000\b\n\002\000\032\n\f\000?\n\n\0009\n\002\000\002\n\002\000\002\n\003\000&\n\002\000\002\n7\000&\n\002\000\001\n\007\000'\nH\000\033\n\005\000\003\n.\000\032\n\005\000\013\n\025\000\n\002\007\000c\n\001\000\001\n\017\000\002\n\t\000\n\002\003\n\023\000\001\n\001\000\033\nS\000&\n?\0005\n\003\000\001\n\022\000\001\n\007\000\n\n\004\000\n\002\025\000\b\n\002\000\002\n\002\000\026\n\001\000\007\n\001\000\001\n\003\000\004\n\"\000\002\n\001\000\003\n\004\000\n\002\002\n\023\000\006\n\004\000\002\n\002\000\026\n\001\000\007\n\001\000\002\n\001\000\002\n\001\000\002\n\037\000\004\n\001\000\001\n\007\000\n\002\002\000\003\n\020\000\007\n\001\000\001\n\001\000\003\n\001\000\026\n\001\000\007\n\001\000\002\n\001\000\005\n\003\000\001\n\022\000\001\n\017\000\001\n\005\000\n\002\025\000\b\n\002\000\002\n\002\000\026\n\001\000\007\n\001\000\002\n\002\000\004\n\003\000\001\n\036\000\002\n\001\000\003\n\004\000\n\002\025\000\006\n\003\000\003\n\001\000\004\n\003\000\002\n\001\000\001\n\001\000\002\n\003\000\002\n\003\000\003\n\003\000\b\n\001\000\003\n-\000\t\002\025\000\b\n\001\000\003\n\001\000\027\n\001\000\n\n\001\000\005\n&\000\002\n\004\000\n\002\025\000\b\n\001\000\003\n\001\000\027\n\001\000\n\n\001\000\005\n$\000\001\n\001\000\002\n\004\000\n\002\025\000\b\n\001\000\003\n\001\000\027\n\001\000\020\n&\000\002\n\004\000\n\002\025\000\022\n\003\000\030\n\001\000\t\n\001\000\001\n\002\000\007\n9\000\001\0010\n\001\001\002\n\f\001\007\n\t\001\n\002'\000\002\n\001\000\001\n\002\000\002\n\001\000\001\n\002\000\001\n\006\000\004\n\001\000\007\n\001\000\003\n\001\000\001\n\001\000\001\n\002\000\002\n\001\000\004\n\001\000\002\n\t\000\001\n\002\000\005\n\001\000\001\n\t\000\n\002\002\000\002\n\"\000\001\n\037\000\n\002\026\000\b\n\001\000\"\n\035\000\004\nt\000\"\n\001\000\005\n\001\000\002\n\025\000\n\002\006\000\006\nJ\000&\n\n\000'\n\t\000Z\n\005\000D\n\005\000R\n\006\000\007\n\001\000?\n\001\000\001\n\001\000\004\n\002\000\007\n\001\000\001\n\001\000\004\n\002\000'\n\001\000\001\n\001\000\004\n\002\000\037\n\001\000\001\n\001\000\004\n\002\000\007\n\001\000\001\n\001\000\004\n\002\000\007\n\001\000\007\n\001\000\027\n\001\000\037\n\001\000\001\n\001\000\004\n\002\000\007\n\001\000'\n\001\000\023\n\016\000\t\002.\000U\n\f\000?\n\002\000\b\n\n\000\032\n\005\000K\n?\0004\n,\000\n\002&\000\n\002\006\000X\n\b\000)\n?\000?\n\004\000Z\n\006\000\026\n\002\000\006\n\002\000&\n\002\000\006\n\002\000\b\n\001\000\001\n\001\000\001\n\001\000\001\n\001\000\037\n\002\0005\n\001\000\007\n\001\000\001\n\003\000\003\n\001\000\007\n\003\000\004\n\002\000\006\n\004\000\r\n\005\000\003\n\001\000\007\n?\000\001\n?\000\001\n\004\000\001\n\002\000\n\n\001\000\001\n\003\000\005\n\006\000\001\n\001\000\001\n\001\000\001\n\001\000\004\n\001\000\003\n\001\000\007\n?\000\002\n*\000\005\n\n\000\001\013T\013\b\013\002\013\002\013Z\013\001\013\003\013\006\013(\013\003\013\001\000^\n\021\000\030\n8\000\020\013?\000?\013?\000?\013\n\013@\000?\013Z\013?\n?\000?\n?\000?\013�\013\007\n\f\000\005\n\005\000\001\n\001\000\n\n\001\000\r\n\001\000\005\n\001\000\001\n\001\000\002\n\001\000\002\n\001\000l\n!\000?\n\022\000@\n\002\0006\n(\000\f\nt\000\003\n\001\000\001\n\001\000?\n\023\000\n\002\007\000\032\n\006\000\032\n\n\000\001\013:\013\037\n\003\000\006\n\002\000\006\n\002\000\006\n\002\000\003\n#\000");
  private static final int[] ZZ_ACTION = zzUnpackAction();
  private static final String ZZ_ACTION_PACKED_0 = "\001\000\001\001\003\002\001\003\001\001\013\000\001\002\003\004\002\000\001\005\001\000\001\005\003\004\006\005\001\006\001\004\002\007\001\b\001\000\001\b\003\000\002\b\001\t\001\n\001\004";
  
  private static int[] zzUnpackAction()
  {
    int[] result = new int[51];
    int offset = 0;
    offset = zzUnpackAction("\001\000\001\001\003\002\001\003\001\001\013\000\001\002\003\004\002\000\001\005\001\000\001\005\003\004\006\005\001\006\001\004\002\007\001\b\001\000\001\b\003\000\002\b\001\t\001\n\001\004", offset, result);
    return result;
  }
  
  private static int zzUnpackAction(String packed, int offset, int[] result)
  {
    int i = 0;
    int j = offset;
    int l = packed.length();
    int count;
    for (; i < l; count > 0)
    {
      count = packed.charAt(i++);
      int value = packed.charAt(i++);
      result[(j++)] = value;count--;
    }
    return j;
  }
  
  private static final int[] ZZ_ROWMAP = zzUnpackRowMap();
  private static final String ZZ_ROWMAP_PACKED_0 = "\000\000\000\016\000\034\000*\0008\000\016\000F\000T\000b\000p\000~\000?\000?\000�\000�\000�\000�\000�\000�\000�\000?\000?\000?\000?\000?\000?\000?\000?\000?\000?\000?\000?\000?\000?\000?\000?\000?\000?\000�\000?\000?\000?\000?\000?\000?\000?\000T\000?\000?\000?\000?";
  
  private static int[] zzUnpackRowMap()
  {
    int[] result = new int[51];
    int offset = 0;
    offset = zzUnpackRowMap("\000\000\000\016\000\034\000*\0008\000\016\000F\000T\000b\000p\000~\000?\000?\000�\000�\000�\000�\000�\000�\000�\000?\000?\000?\000?\000?\000?\000?\000?\000?\000?\000?\000?\000?\000?\000?\000?\000?\000?\000�\000?\000?\000?\000?\000?\000?\000?\000T\000?\000?\000?\000?", offset, result);
    return result;
  }
  
  private static int zzUnpackRowMap(String packed, int offset, int[] result)
  {
    int i = 0;
    int j = offset;
    int l = packed.length();
    while (i < l)
    {
      int high = packed.charAt(i++) << '\020';
      result[(j++)] = (high | packed.charAt(i++));
    }
    return j;
  }
  
  private static final int[] ZZ_TRANS = zzUnpackTrans();
  private static final String ZZ_TRANS_PACKED_0 = "\001\002\001\003\001\004\007\002\001\005\001\006\001\007\001\002\017\000\002\003\001\000\001\b\001\000\001\t\002\n\001\013\001\003\004\000\001\003\001\004\001\000\001\f\001\000\001\t\002\r\001\016\001\004\004\000\001\003\001\004\001\017\001\020\001\021\001\022\002\n\001\013\001\023\020\000\001\002\001\000\001\024\001\025\007\000\001\026\004\000\002\027\007\000\001\027\004\000\001\030\001\031\007\000\001\032\005\000\001\033\007\000\001\013\004\000\001\034\001\035\007\000\001\036\004\000\001\037\001 \007\000\001!\004\000\001\"\001#\007\000\001$\r\000\001%\004\000\001\024\001\025\007\000\001&\r\000\001'\004\000\002\027\007\000\001(\004\000\001\003\001\004\001\017\001\b\001\021\001\022\002\n\001\013\001\023\004\000\002\024\001\000\001)\001\000\001\t\002*\001\000\001\024\004\000\001\024\001\025\001\000\001+\001\000\001\t\002,\001-\001\025\004\000\001\024\001\025\001\000\001)\001\000\001\t\002*\001\000\001\026\004\000\002\027\001\000\001.\002\000\001.\002\000\001\027\004\000\002\030\001\000\001*\001\000\001\t\002*\001\000\001\030\004\000\001\030\001\031\001\000\001,\001\000\001\t\002,\001-\001\031\004\000\001\030\001\031\001\000\001*\001\000\001\t\002*\001\000\001\032\005\000\001\033\001\000\001-\002\000\003-\001\033\004\000\002\034\001\000\001/\001\000\001\t\002\n\001\013\001\034\004\000\001\034\001\035\001\000\0010\001\000\001\t\002\r\001\016\001\035\004\000\001\034\001\035\001\000\001/\001\000\001\t\002\n\001\013\001\036\004\000\002\037\001\000\001\n\001\000\001\t\002\n\001\013\001\037\004\000\001\037\001 \001\000\001\r\001\000\001\t\002\r\001\016\001 \004\000\001\037\001 \001\000\001\n\001\000\001\t\002\n\001\013\001!\004\000\002\"\001\000\001\013\002\000\003\013\001\"\004\000\001\"\001#\001\000\001\016\002\000\003\016\001#\004\000\001\"\001#\001\000\001\013\002\000\003\013\001$\006\000\001\017\006\000\001%\004\000\001\024\001\025\001\000\0011\001\000\001\t\002*\001\000\001\026\004\000\002\027\001\000\001.\002\000\001.\002\000\001(\004\000\002\024\007\000\001\024\004\000\002\030\007\000\001\030\004\000\002\034\007\000\001\034\004\000\002\037\007\000\001\037\004\000\002\"\007\000\001\"\004\000\0022\007\000\0012\004\000\002\024\007\000\0013\004\000\0022\001\000\001.\002\000\001.\002\000\0012\004\000\002\024\001\000\0011\001\000\001\t\002*\001\000\001\024\003\000";
  private static final int ZZ_UNKNOWN_ERROR = 0;
  private static final int ZZ_NO_MATCH = 1;
  private static final int ZZ_PUSHBACK_2BIG = 2;
  
  private static int[] zzUnpackTrans()
  {
    int[] result = new int['?'];
    int offset = 0;
    offset = zzUnpackTrans("\001\002\001\003\001\004\007\002\001\005\001\006\001\007\001\002\017\000\002\003\001\000\001\b\001\000\001\t\002\n\001\013\001\003\004\000\001\003\001\004\001\000\001\f\001\000\001\t\002\r\001\016\001\004\004\000\001\003\001\004\001\017\001\020\001\021\001\022\002\n\001\013\001\023\020\000\001\002\001\000\001\024\001\025\007\000\001\026\004\000\002\027\007\000\001\027\004\000\001\030\001\031\007\000\001\032\005\000\001\033\007\000\001\013\004\000\001\034\001\035\007\000\001\036\004\000\001\037\001 \007\000\001!\004\000\001\"\001#\007\000\001$\r\000\001%\004\000\001\024\001\025\007\000\001&\r\000\001'\004\000\002\027\007\000\001(\004\000\001\003\001\004\001\017\001\b\001\021\001\022\002\n\001\013\001\023\004\000\002\024\001\000\001)\001\000\001\t\002*\001\000\001\024\004\000\001\024\001\025\001\000\001+\001\000\001\t\002,\001-\001\025\004\000\001\024\001\025\001\000\001)\001\000\001\t\002*\001\000\001\026\004\000\002\027\001\000\001.\002\000\001.\002\000\001\027\004\000\002\030\001\000\001*\001\000\001\t\002*\001\000\001\030\004\000\001\030\001\031\001\000\001,\001\000\001\t\002,\001-\001\031\004\000\001\030\001\031\001\000\001*\001\000\001\t\002*\001\000\001\032\005\000\001\033\001\000\001-\002\000\003-\001\033\004\000\002\034\001\000\001/\001\000\001\t\002\n\001\013\001\034\004\000\001\034\001\035\001\000\0010\001\000\001\t\002\r\001\016\001\035\004\000\001\034\001\035\001\000\001/\001\000\001\t\002\n\001\013\001\036\004\000\002\037\001\000\001\n\001\000\001\t\002\n\001\013\001\037\004\000\001\037\001 \001\000\001\r\001\000\001\t\002\r\001\016\001 \004\000\001\037\001 \001\000\001\n\001\000\001\t\002\n\001\013\001!\004\000\002\"\001\000\001\013\002\000\003\013\001\"\004\000\001\"\001#\001\000\001\016\002\000\003\016\001#\004\000\001\"\001#\001\000\001\013\002\000\003\013\001$\006\000\001\017\006\000\001%\004\000\001\024\001\025\001\000\0011\001\000\001\t\002*\001\000\001\026\004\000\002\027\001\000\001.\002\000\001.\002\000\001(\004\000\002\024\007\000\001\024\004\000\002\030\007\000\001\030\004\000\002\034\007\000\001\034\004\000\002\037\007\000\001\037\004\000\002\"\007\000\001\"\004\000\0022\007\000\0012\004\000\002\024\007\000\0013\004\000\0022\001\000\001.\002\000\001.\002\000\0012\004\000\002\024\001\000\0011\001\000\001\t\002*\001\000\001\024\003\000", offset, result);
    return result;
  }
  
  private static int zzUnpackTrans(String packed, int offset, int[] result)
  {
    int i = 0;
    int j = offset;
    int l = packed.length();
    int count;
    for (; i < l; count > 0)
    {
      count = packed.charAt(i++);
      int value = packed.charAt(i++);
      value--;
      result[(j++)] = value;count--;
    }
    return j;
  }
  
  private static final String[] ZZ_ERROR_MSG = { "Unkown internal scanner error", "Error: could not match input", "Error: pushback value was too large" };
  private static final int[] ZZ_ATTRIBUTE = zzUnpackAttribute();
  private static final String ZZ_ATTRIBUTE_PACKED_0 = "\001\000\001\t\003\001\001\t\001\001\013\000\004\001\002\000\001\001\001\000\017\001\001\000\001\001\003\000\005\001";
  private Reader zzReader;
  private int zzState;
  
  private static int[] zzUnpackAttribute()
  {
    int[] result = new int[51];
    int offset = 0;
    offset = zzUnpackAttribute("\001\000\001\t\003\001\001\t\001\001\013\000\004\001\002\000\001\001\001\000\017\001\001\000\001\001\003\000\005\001", offset, result);
    return result;
  }
  
  private static int zzUnpackAttribute(String packed, int offset, int[] result)
  {
    int i = 0;
    int j = offset;
    int l = packed.length();
    int count;
    for (; i < l; count > 0)
    {
      count = packed.charAt(i++);
      int value = packed.charAt(i++);
      result[(j++)] = value;count--;
    }
    return j;
  }
  
  private int zzLexicalState = 0;
  private char[] zzBuffer = new char['?'];
  private int zzMarkedPos;
  private int zzPushbackPos;
  private int zzCurrentPos;
  private int zzStartRead;
  private int zzEndRead;
  private int yyline;
  private int yychar;
  private int yycolumn;
  private boolean zzAtBOL = true;
  private boolean zzAtEOF;
  public static final int ALPHANUM = 0;
  public static final int APOSTROPHE = 1;
  public static final int ACRONYM = 2;
  public static final int COMPANY = 3;
  public static final int EMAIL = 4;
  public static final int HOST = 5;
  public static final int NUM = 6;
  public static final int CJ = 7;
  /**
   * @deprecated
   */
  public static final int ACRONYM_DEP = 8;
  public static final String[] TOKEN_TYPES = StandardTokenizer.TOKEN_TYPES;
  
  public final int yychar()
  {
    return yychar;
  }
  
  final void reset(Reader r)
  {
    if (zzBuffer.length > 16384) {
      zzBuffer = new char['?'];
    }
    yyreset(r);
  }
  
  final void getText(Token t)
  {
    t.setTermBuffer(zzBuffer, zzStartRead, zzMarkedPos - zzStartRead);
  }
  
  final void getText(TermAttribute t)
  {
    t.setTermBuffer(zzBuffer, zzStartRead, zzMarkedPos - zzStartRead);
  }
  
  StandardTokenizerImpl(Reader in)
  {
    zzReader = in;
  }
  
  StandardTokenizerImpl(InputStream in)
  {
    this(new InputStreamReader(in));
  }
  
  private static char[] zzUnpackCMap(String packed)
  {
    char[] map = new char[65536];
    int i = 0;
    int j = 0;
    int count;
    for (; i < 1154; count > 0)
    {
      count = packed.charAt(i++);
      char value = packed.charAt(i++);
      map[(j++)] = value;count--;
    }
    return map;
  }
  
  private boolean zzRefill()
    throws IOException
  {
    if (zzStartRead > 0)
    {
      System.arraycopy(zzBuffer, zzStartRead, zzBuffer, 0, zzEndRead - zzStartRead);
      
      zzEndRead -= zzStartRead;
      zzCurrentPos -= zzStartRead;
      zzMarkedPos -= zzStartRead;
      zzPushbackPos -= zzStartRead;
      zzStartRead = 0;
    }
    if (zzCurrentPos >= zzBuffer.length)
    {
      char[] newBuffer = new char[zzCurrentPos * 2];
      System.arraycopy(zzBuffer, 0, newBuffer, 0, zzBuffer.length);
      zzBuffer = newBuffer;
    }
    int numRead = zzReader.read(zzBuffer, zzEndRead, zzBuffer.length - zzEndRead);
    if (numRead < 0) {
      return true;
    }
    zzEndRead += numRead;
    return false;
  }
  
  public final void yyclose()
    throws IOException
  {
    zzAtEOF = true;
    zzEndRead = zzStartRead;
    if (zzReader != null) {
      zzReader.close();
    }
  }
  
  public final void yyreset(Reader reader)
  {
    zzReader = reader;
    zzAtBOL = true;
    zzAtEOF = false;
    zzEndRead = (zzStartRead = 0);
    zzCurrentPos = (zzMarkedPos = zzPushbackPos = 0);
    yyline = (yychar = yycolumn = 0);
    zzLexicalState = 0;
  }
  
  public final int yystate()
  {
    return zzLexicalState;
  }
  
  public final void yybegin(int newState)
  {
    zzLexicalState = newState;
  }
  
  public final String yytext()
  {
    return new String(zzBuffer, zzStartRead, zzMarkedPos - zzStartRead);
  }
  
  public final char yycharat(int pos)
  {
    return zzBuffer[(zzStartRead + pos)];
  }
  
  public final int yylength()
  {
    return zzMarkedPos - zzStartRead;
  }
  
  private void zzScanError(int errorCode)
  {
    String message;
    try
    {
      message = ZZ_ERROR_MSG[errorCode];
    }
    catch (ArrayIndexOutOfBoundsException e)
    {
      message = ZZ_ERROR_MSG[0];
    }
    throw new Error(message);
  }
  
  public void yypushback(int number)
  {
    if (number > yylength()) {
      zzScanError(2);
    }
    zzMarkedPos -= number;
  }
  
  public int getNextToken()
    throws IOException
  {
    int zzEndReadL = zzEndRead;
    char[] zzBufferL = zzBuffer;
    char[] zzCMapL = ZZ_CMAP;
    
    int[] zzTransL = ZZ_TRANS;
    int[] zzRowMapL = ZZ_ROWMAP;
    int[] zzAttrL = ZZ_ATTRIBUTE;
    for (;;)
    {
      int zzMarkedPosL = zzMarkedPos;
      
      yychar += zzMarkedPosL - zzStartRead;
      
      int zzAction = -1;
      
      int zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL;
      
      zzState = zzLexicalState;
      int zzInput;
      for (;;)
      {
        int zzInput;
        if (zzCurrentPosL < zzEndReadL)
        {
          zzInput = zzBufferL[(zzCurrentPosL++)];
        }
        else
        {
          if (zzAtEOF)
          {
            int zzInput = -1;
            break;
          }
          zzCurrentPos = zzCurrentPosL;
          zzMarkedPos = zzMarkedPosL;
          boolean eof = zzRefill();
          
          zzCurrentPosL = zzCurrentPos;
          zzMarkedPosL = zzMarkedPos;
          zzBufferL = zzBuffer;
          zzEndReadL = zzEndRead;
          if (eof)
          {
            int zzInput = -1;
            break;
          }
          zzInput = zzBufferL[(zzCurrentPosL++)];
        }
        int zzNext = zzTransL[(zzRowMapL[zzState] + zzCMapL[zzInput])];
        if (zzNext == -1) {
          break;
        }
        zzState = zzNext;
        
        int zzAttributes = zzAttrL[zzState];
        if ((zzAttributes & 0x1) == 1)
        {
          zzAction = zzState;
          zzMarkedPosL = zzCurrentPosL;
          if ((zzAttributes & 0x8) == 8) {
            break;
          }
        }
      }
      zzMarkedPos = zzMarkedPosL;
      switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction])
      {
      case 4: 
        return 5;
      case 11: 
        break;
      case 9: 
        return 2;
      case 12: 
        break;
      case 8: 
        return 8;
      case 13: 
        break;
      case 1: 
      case 14: 
        break;
      case 5: 
        return 6;
      case 15: 
        break;
      case 3: 
        return 7;
      case 16: 
        break;
      case 2: 
        return 0;
      case 17: 
        break;
      case 7: 
        return 3;
      case 18: 
        break;
      case 6: 
        return 1;
      case 19: 
        break;
      case 10: 
        return 4;
      case 20: 
        break;
      default: 
        if ((zzInput == -1) && (zzStartRead == zzCurrentPos))
        {
          zzAtEOF = true;
          return -1;
        }
        zzScanError(1);
      }
    }
  }
}

/* Location:
 * Qualified Name:     org.apache.lucene.analysis.standard.StandardTokenizerImpl
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package org.apache.lucene.analysis.tokenattributes;

import org.apache.lucene.util.Attribute;

public abstract interface FlagsAttribute
  extends Attribute
{
  public abstract int getFlags();
  
  public abstract void setFlags(int paramInt);
}

/* Location:
 * Qualified Name:     org.apache.lucene.analysis.tokenattributes.FlagsAttribute
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package org.apache.lucene.analysis.tokenattributes;

import java.io.Serializable;
import org.apache.lucene.util.AttributeImpl;

public class FlagsAttributeImpl
  extends AttributeImpl
  implements FlagsAttribute, Cloneable, Serializable
{
  private int flags = 0;
  
  public int getFlags()
  {
    return flags;
  }
  
  public void setFlags(int flags)
  {
    this.flags = flags;
  }
  
  public void clear()
  {
    flags = 0;
  }
  
  public boolean equals(Object other)
  {
    if (this == other) {
      return true;
    }
    if ((other instanceof FlagsAttributeImpl)) {
      return flags == flags;
    }
    return false;
  }
  
  public int hashCode()
  {
    return flags;
  }
  
  public void copyTo(AttributeImpl target)
  {
    FlagsAttribute t = (FlagsAttribute)target;
    t.setFlags(flags);
  }
}

/* Location:
 * Qualified Name:     org.apache.lucene.analysis.tokenattributes.FlagsAttributeImpl
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package org.apache.lucene.analysis.tokenattributes;

import org.apache.lucene.util.Attribute;

public abstract interface OffsetAttribute
  extends Attribute
{
  public abstract int startOffset();
  
  public abstract void setOffset(int paramInt1, int paramInt2);
  
  public abstract int endOffset();
}

/* Location:
 * Qualified Name:     org.apache.lucene.analysis.tokenattributes.OffsetAttribute
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package org.apache.lucene.analysis.tokenattributes;

import java.io.Serializable;
import org.apache.lucene.util.AttributeImpl;

public class OffsetAttributeImpl
  extends AttributeImpl
  implements OffsetAttribute, Cloneable, Serializable
{
  private int startOffset;
  private int endOffset;
  
  public int startOffset()
  {
    return startOffset;
  }
  
  public void setOffset(int startOffset, int endOffset)
  {
    this.startOffset = startOffset;
    this.endOffset = endOffset;
  }
  
  public int endOffset()
  {
    return endOffset;
  }
  
  public void clear()
  {
    startOffset = 0;
    endOffset = 0;
  }
  
  public boolean equals(Object other)
  {
    if (other == this) {
      return true;
    }
    if ((other instanceof OffsetAttributeImpl))
    {
      OffsetAttributeImpl o = (OffsetAttributeImpl)other;
      return (startOffset == startOffset) && (endOffset == endOffset);
    }
    return false;
  }
  
  public int hashCode()
  {
    int code = startOffset;
    code = code * 31 + endOffset;
    return code;
  }
  
  public void copyTo(AttributeImpl target)
  {
    OffsetAttribute t = (OffsetAttribute)target;
    t.setOffset(startOffset, endOffset);
  }
}

/* Location:
 * Qualified Name:     org.apache.lucene.analysis.tokenattributes.OffsetAttributeImpl
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package org.apache.lucene.analysis.tokenattributes;

import org.apache.lucene.index.Payload;
import org.apache.lucene.util.Attribute;

public abstract interface PayloadAttribute
  extends Attribute
{
  public abstract Payload getPayload();
  
  public abstract void setPayload(Payload paramPayload);
}

/* Location:
 * Qualified Name:     org.apache.lucene.analysis.tokenattributes.PayloadAttribute
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package org.apache.lucene.analysis.tokenattributes;

import java.io.Serializable;
import org.apache.lucene.index.Payload;
import org.apache.lucene.util.AttributeImpl;

public class PayloadAttributeImpl
  extends AttributeImpl
  implements PayloadAttribute, Cloneable, Serializable
{
  private Payload payload;
  
  public PayloadAttributeImpl() {}
  
  public PayloadAttributeImpl(Payload payload)
  {
    this.payload = payload;
  }
  
  public Payload getPayload()
  {
    return payload;
  }
  
  public void setPayload(Payload payload)
  {
    this.payload = payload;
  }
  
  public void clear()
  {
    payload = null;
  }
  
  public Object clone()
  {
    PayloadAttributeImpl clone = (PayloadAttributeImpl)super.clone();
    if (payload != null) {
      payload = ((Payload)payload.clone());
    }
    return clone;
  }
  
  public boolean equals(Object other)
  {
    if (other == this) {
      return true;
    }
    if ((other instanceof PayloadAttribute))
    {
      PayloadAttributeImpl o = (PayloadAttributeImpl)other;
      if ((payload == null) || (payload == null)) {
        return (payload == null) && (payload == null);
      }
      return payload.equals(payload);
    }
    return false;
  }
  
  public int hashCode()
  {
    return payload == null ? 0 : payload.hashCode();
  }
  
  public void copyTo(AttributeImpl target)
  {
    PayloadAttribute t = (PayloadAttribute)target;
    t.setPayload(payload == null ? null : (Payload)payload.clone());
  }
}

/* Location:
 * Qualified Name:     o
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2017. Infinite Loop Ltd