TokenStream ts = analyzer.tokenStream("text", new InputStreamReader(ftxt));
OutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream(new File(txt.getAbsoluteFile()+"."+outputChipName+".word")));
BufferedWriter bw = new BufferedWriter(osw);
long start = System.currentTimeMillis();
for(Token t= new Token(); (t=TokenUtils.nextToken(ts, t)) !=null;) {
bw.append(new String(t.term())).append("\r\n");
}
long t = System.currentTimeMillis() - start;
time += t;
System.out.println("size="+(s/1024)+"kb, use "+t+"ms, speed="+speed(s, t)+"kb/s, file="+txt.getName());
bw.close();