1275N/A/*
1275N/A * CDDL HEADER START
1275N/A *
1275N/A * The contents of this file are subject to the terms of the
1275N/A * Common Development and Distribution License (the "License").
1275N/A * You may not use this file except in compliance with the License.
1275N/A *
1275N/A * See LICENSE.txt included in this distribution for the specific
1275N/A * language governing permissions and limitations under the License.
1275N/A *
1275N/A * When distributing Covered Code, include this CDDL HEADER in each
1275N/A * file and include the License file at LICENSE.txt.
1275N/A * If applicable, add the following below this CDDL HEADER, with the
1275N/A * fields enclosed by brackets "[]" replaced with your own identifying
1275N/A * information: Portions Copyright [yyyy] [name of copyright owner]
1275N/A *
1275N/A * CDDL HEADER END
1275N/A */
1275N/A
1275N/A/*
1275N/A * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
1275N/A * Use is subject to license terms.
1275N/A */
1275N/A
1275N/Apackage org.opensolaris.opengrok.analysis.csharp;
1275N/A
1275N/Aimport java.io.IOException;
1275N/Aimport java.io.Reader;
1384N/A
1275N/Aimport org.opensolaris.opengrok.analysis.Definitions;
1275N/Aimport org.opensolaris.opengrok.analysis.FileAnalyzer;
1275N/Aimport org.opensolaris.opengrok.analysis.FileAnalyzer.Genre;
1275N/Aimport org.opensolaris.opengrok.analysis.FileAnalyzerFactory;
1384N/Aimport org.opensolaris.opengrok.analysis.XrefWriter;
1275N/Aimport org.opensolaris.opengrok.configuration.Project;
1275N/Aimport org.opensolaris.opengrok.history.Annotation;
1275N/A
1275N/Apublic class CSharpAnalyzerFactory extends FileAnalyzerFactory {
1275N/A private static final String[] SUFFIXES = {
1275N/A "CS"
1275N/A };
1275N/A
1275N/A private static final String[] MAGICS = {
1275N/A };
1275N/A
1275N/A public CSharpAnalyzerFactory() {
1275N/A super(null, SUFFIXES, MAGICS, null, "text/plain", Genre.PLAIN);
1275N/A }
1275N/A
1275N/A @Override
1275N/A protected FileAnalyzer newAnalyzer() {
1275N/A return new CSharpAnalyzer(this);
1275N/A }
1275N/A
1275N/A @Override
1384N/A public void writeXref(Reader in, XrefWriter out, Definitions defs, Annotation annotation, Project project)
1275N/A throws IOException {
1275N/A CSharpAnalyzer.writeXref(in, out, defs, annotation, project);
1275N/A }
1275N/A}