202N/A/*
202N/A * CDDL HEADER START
202N/A *
202N/A * The contents of this file are subject to the terms of the
202N/A * Common Development and Distribution License (the "License").
202N/A * You may not use this file except in compliance with the License.
202N/A *
202N/A * See LICENSE.txt included in this distribution for the specific
202N/A * language governing permissions and limitations under the License.
202N/A *
202N/A * When distributing Covered Code, include this CDDL HEADER in each
202N/A * file and include the License file at LICENSE.txt.
202N/A * If applicable, add the following below this CDDL HEADER, with the
202N/A * fields enclosed by brackets "[]" replaced with your own identifying
202N/A * information: Portions Copyright [yyyy] [name of copyright owner]
202N/A *
202N/A * CDDL HEADER END
202N/A */
202N/A
202N/A/*
202N/A * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
202N/A * Use is subject to license terms.
202N/A */
202N/A
202N/Apackage org.opensolaris.opengrok.analysis.executables;
202N/A
202N/Aimport org.opensolaris.opengrok.analysis.FileAnalyzer;
202N/Aimport org.opensolaris.opengrok.analysis.FileAnalyzer.Genre;
202N/Aimport org.opensolaris.opengrok.analysis.FileAnalyzerFactory;
202N/A
202N/Apublic class ELFAnalyzerFactory extends FileAnalyzerFactory {
202N/A private static final String[] MAGICS = {
202N/A "\177ELF"
202N/A };
202N/A
202N/A public ELFAnalyzerFactory() {
483N/A super(null, null, MAGICS, null, null, Genre.XREFABLE);
202N/A }
202N/A
202N/A @Override
202N/A protected FileAnalyzer newAnalyzer() {
202N/A return new ELFAnalyzer(this);
202N/A }
202N/A}