1 package net.nutch.parse.msword; 2 3 import java.io.*; 4 12 13 class Test 14 { 15 16 public Test() 17 { 18 } 19 public static void main(String [] args) 20 { 21 try 22 { 23 WordExtractor extractor = new WordExtractor(); 24 String s = extractor.extractText(new FileInputStream(args[0])); 25 System.out.println(s); 26 OutputStreamWriter out = new OutputStreamWriter(new FileOutputStream("./test.txt")); 28 out.write(s); 29 out.flush(); 30 out.close(); 31 } 32 catch (Exception e) 33 { 34 e.printStackTrace(); 35 } 36 } 37 } 38 | Popular Tags |