FileAnalyzer.java revision 99
2026N/A * The contents of this file are subject to the terms of the 2026N/A * Common Development and Distribution License (the "License"). 2026N/A * You may not use this file except in compliance with the License. 2026N/A * language governing permissions and limitations under the License. 2026N/A * When distributing Covered Code, include this CDDL HEADER in each 2026N/A * If applicable, add the following below this CDDL HEADER, with the 2026N/A * fields enclosed by brackets "[]" replaced with your own identifying 2026N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2026N/A * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 2026N/A * Use is subject to license terms. 2026N/A * Base class for all different File Analyzers 2026N/A * An Analyzer for a filetype provides 2026N/A * <li>the file extentions and magic numbers it analyzes</li> 2026N/A * <li>a lucene document listing the fields it can support</li> 2026N/A * <li>TokenStreams for each of the field it said requires tokenizing in 2</li> 2026N/A * <li>cross reference in HTML format</li> 2026N/A * <li>The type of file data, plain text etc</li> 2026N/A * Created on September 21, 2005 2026N/A * What kind of file is this? 2026N/A HTML // not xrefed - summarizer context from original file /** Creates a new instance of FileAnalyzer */ * Write a cross referenced HTML file. * @param out to writer HTML cross-reference out.
write(
"Error General File X-Ref writer!");
* Write a cross referenced HTML file. * @param xrefdir path of file root xref directory * @param path path from xrefdir // System.err.println("parent " + xrefdir + " child " + path); * Write a cross referenced HTML file reads the source from in * @param out Output xref writer * @param annotation annotation for the file (could be null)