PlainAnalyzer.java revision c23e82b612acd5e947c164114377578116f6d298
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* See LICENSE.txt included in this distribution for the specific
* language governing permissions and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at LICENSE.txt.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* ident "%Z%%M% %I% %E% SMI"
*/
/**
* Analyzer for plain text files
* Created on September 21, 2005
*
* @author Chandan
*/
public class PlainAnalyzer extends FileAnalyzer {
public static char[] content;
public int len;
int flen;
public static String getContentType() {
}
for(byte b: content) {
if(b == 9 || b == 10 || b == 13 || (b >= 32 && b < 127) ) {
} else {
return null;
}
}
return PlainAnalyzer.class;
}
return g;
}
/** Creates a new instance of PlainAnalyzer */
public PlainAnalyzer() {
super();
len = 0;
//using pref to pass the path to ctags!
//Preferences prefs = Preferences.userNodeForPackage(PlainAnalyzer.class);
//String ctagsPath = prefs.get("ctags", null);
try {
} catch (IOException e) {
// System.err.println("ERROR: running ctags: " + ctagsPath + " searching definitions will not work!");
}
}
}
}
try {
len = 0;
do{
if(rbytes > 0 ) {
}
} else {
break;
}
} while(true);
} catch (IOException e) {
return;
}
try {
}
}
} catch (IOException e) {
}
}
return plainfull;
return plainref;
return new Hash2TokenStream(defs);
}
}
/**
* Write a cross referenced HTML file.
* @param out Writer to write HTML cross-reference
*/
//lines = xref.getLine();
}
/**
* Write a cross referenced HTML file reads the source from in
* @param in Input source
* @param out Output xref writer
*/
}
}