解析文件
doc、docx解析方法
public static String parseFile(File docFile) {
String fileName = docFile.getName();
String docContent = null;
FileInputStream fis = null;
try {
fis = new FileInputStream(docFile);
if (fileName.toLowerCase().endsWith(doc)) {
HWPFDocument doc = new HWPFDocument(fis);
docContent = doc.getDocumentText();
} else if (fileName.toLowerCase().endsWith(docx)) {