PathAnalyzer.java revision 407
8N/A/*
8N/A * CDDL HEADER START
380N/A *
8N/A * The contents of this file are subject to the terms of the
8N/A * Common Development and Distribution License (the "License").
8N/A * You may not use this file except in compliance with the License.
8N/A *
8N/A * See LICENSE.txt included in this distribution for the specific
8N/A * language governing permissions and limitations under the License.
8N/A *
8N/A * When distributing Covered Code, include this CDDL HEADER in each
8N/A * file and include the License file at LICENSE.txt.
8N/A * If applicable, add the following below this CDDL HEADER, with the
8N/A * fields enclosed by brackets "[]" replaced with your own identifying
8N/A * information: Portions Copyright [yyyy] [name of copyright owner]
8N/A *
8N/A * CDDL HEADER END
8N/A */
8N/A
8N/A/*
8N/A * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
8N/A * Use is subject to license terms.
8N/A */
8N/Apackage org.opensolaris.opengrok.analysis;
8N/A
8N/Aimport java.io.Reader;
8N/Aimport org.apache.lucene.analysis.Analyzer;
8N/Aimport org.apache.lucene.analysis.TokenStream;
8N/A
8N/Apublic final class PathAnalyzer extends Analyzer {
535N/A public TokenStream tokenStream(String fieldName, Reader reader) {
8N/A return new PathTokenizer(reader);
8N/A }
8N/A}
253N/A