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/Apackage org.opensolaris.opengrok.analysis.archive;
202N/A
202N/Aimport org.opensolaris.opengrok.analysis.FileAnalyzer;
202N/Aimport org.opensolaris.opengrok.analysis.FileAnalyzerFactory;
202N/A
202N/Apublic class BZip2AnalyzerFactory extends FileAnalyzerFactory {
202N/A private static final String[] SUFFIXES = {
202N/A "BZ", "BZ2"
202N/A };
202N/A
202N/A private static final String[] MAGICS = {
202N/A "BZh" // Bzip files
202N/A };
202N/A
202N/A public BZip2AnalyzerFactory() {
483N/A super(null, SUFFIXES, MAGICS, null, null, null);
202N/A }
202N/A
202N/A @Override
202N/A protected FileAnalyzer newAnalyzer() {
202N/A return new BZip2Analyzer(this);
202N/A }
202N/A}