FileAnalyzer.java revision 1185
824N/A * The contents of this file are subject to the terms of the 963N/A * Common Development and Distribution License (the "License"). 824N/A * You may not use this file except in compliance with the License. 919N/A * language governing permissions and limitations under the License. 919N/A * When distributing Covered Code, include this CDDL HEADER in each 919N/A * If applicable, add the following below this CDDL HEADER, with the 919N/A * fields enclosed by brackets "[]" replaced with your own identifying 919N/A * information: Portions Copyright [yyyy] [name of copyright owner] 919N/A * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 919N/A * Use is subject to license terms. 824N/A * Base class for all different File Analyzers 824N/A * An Analyzer for a filetype provides 824N/A * <li>the file extentions and magic numbers it analyzes</li> 824N/A * <li>a lucene document listing the fields it can support</li> 824N/A * <li>TokenStreams for each of the field it said requires tokenizing in 2</li> 824N/A * <li>cross reference in HTML format</li> 824N/A * <li>The type of file data, plain text etc</li> 824N/A * Created on September 21, 2005 824N/A * What kind of file is this? 824N/A /** xrefed - line numbered context */ 824N/A /** xrefed - summarizer context */ 824N/A /** not xrefed - no context */ 824N/A /** not xrefed - summarizer context from original file */ 824N/A * Get the type name value used to tag lucence documents. 824N/A * @return a none-null string. 824N/A * Get the Genre for the given type name. 824N/A * @param typeName name to check 824N/A * @return {@code null} if it doesn't match any genre, the genre otherwise. * Get the factory which created this analyzer. * @return the {@code FileAnalyzerFactory} which created this analyzer /** Creates a new instance of FileAnalyzer */ * Write a cross referenced HTML file. * @param out to writer HTML cross-reference * @throws java.io.IOException if an error occurs out.
write(
"Error General File X-Ref writer!");