TextAnalyzer.java revision 1462
961N/A * The contents of this file are subject to the terms of the 961N/A * Common Development and Distribution License (the "License"). 961N/A * You may not use this file except in compliance with the License. 961N/A * language governing permissions and limitations under the License. 961N/A * When distributing Covered Code, include this CDDL HEADER in each 961N/A * If applicable, add the following below this CDDL HEADER, with the 961N/A * fields enclosed by brackets "[]" replaced with your own identifying 961N/A * information: Portions Copyright [yyyy] [name of copyright owner] 1462N/A * A {@link FileAnalyzer}, which tries to determine and use the charset of the 1462N/A * input to analyze wrt. UTF-16 and UTF-8. If the charset cannot be detected, 1462N/A * the platforms default charset will be used. 1462N/A * @param factory factory to use for fallback settings. 970N/A // InputStreamReader does not properly discard BOM on UTF8 streams, 970N/A // so don't reset the stream. 1462N/A * Analyze the source provided by the given reader and store results into 1462N/A * the given document. NOTE: This method does not close the given reader 1462N/A * @param doc where to store results 1462N/A * @param reader reader which provides the source to analyze.