diff --git a/.classpath b/.classpath
new file mode 100644
index 0000000..4e3e232
--- /dev/null
+++ b/.classpath
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.project b/.project
new file mode 100644
index 0000000..c710560
--- /dev/null
+++ b/.project
@@ -0,0 +1,17 @@
+
+
+ TestReadFromExcel
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+
+ org.eclipse.jdt.core.javanature
+
+
diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..8000cd6
--- /dev/null
+++ b/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,11 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
diff --git a/bin/com/hjd/poiutils/ExcelUtils.class b/bin/com/hjd/poiutils/ExcelUtils.class
new file mode 100644
index 0000000..6eefb49
Binary files /dev/null and b/bin/com/hjd/poiutils/ExcelUtils.class differ
diff --git a/libs/dom4j-1.6.1.jar b/libs/dom4j-1.6.1.jar
new file mode 100644
index 0000000..c8c4dbb
Binary files /dev/null and b/libs/dom4j-1.6.1.jar differ
diff --git a/libs/poi-3.10.1-20140818.jar b/libs/poi-3.10.1-20140818.jar
new file mode 100644
index 0000000..dd1ab4a
Binary files /dev/null and b/libs/poi-3.10.1-20140818.jar differ
diff --git a/libs/poi-examples-3.10.1-20140818.jar b/libs/poi-examples-3.10.1-20140818.jar
new file mode 100644
index 0000000..4985833
Binary files /dev/null and b/libs/poi-examples-3.10.1-20140818.jar differ
diff --git a/libs/poi-excelant-3.10.1-20140818.jar b/libs/poi-excelant-3.10.1-20140818.jar
new file mode 100644
index 0000000..666ede0
Binary files /dev/null and b/libs/poi-excelant-3.10.1-20140818.jar differ
diff --git a/libs/poi-ooxml-3.10.1-20140818.jar b/libs/poi-ooxml-3.10.1-20140818.jar
new file mode 100644
index 0000000..fab0eea
Binary files /dev/null and b/libs/poi-ooxml-3.10.1-20140818.jar differ
diff --git a/libs/poi-ooxml-schemas-3.10.1-20140818.jar b/libs/poi-ooxml-schemas-3.10.1-20140818.jar
new file mode 100644
index 0000000..f8602b5
Binary files /dev/null and b/libs/poi-ooxml-schemas-3.10.1-20140818.jar differ
diff --git a/libs/poi-scratchpad-3.10.1-20140818.jar b/libs/poi-scratchpad-3.10.1-20140818.jar
new file mode 100644
index 0000000..61ec79f
Binary files /dev/null and b/libs/poi-scratchpad-3.10.1-20140818.jar differ
diff --git a/libs/xmlbeans-2.3.0.jar b/libs/xmlbeans-2.3.0.jar
new file mode 100644
index 0000000..ccd8163
Binary files /dev/null and b/libs/xmlbeans-2.3.0.jar differ
diff --git a/src/com/hjd/poiutils/ExcelUtils.java b/src/com/hjd/poiutils/ExcelUtils.java
new file mode 100644
index 0000000..1827ccc
--- /dev/null
+++ b/src/com/hjd/poiutils/ExcelUtils.java
@@ -0,0 +1,318 @@
+package com.hjd.poiutils;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.OutputStream;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.TreeMap;
+
+import org.apache.poi.ss.usermodel.Sheet;
+
+import org.apache.poi.hssf.usermodel.HSSFCellStyle;
+import org.apache.poi.hssf.usermodel.HSSFFont;
+import org.apache.poi.hssf.usermodel.HSSFWorkbook;
+import org.apache.poi.hssf.util.HSSFColor;
+import org.apache.poi.ss.usermodel.Cell;
+import org.apache.poi.ss.usermodel.CellStyle;
+import org.apache.poi.ss.usermodel.Font;
+import org.apache.poi.ss.usermodel.Row;
+import org.apache.poi.ss.usermodel.Workbook;
+import org.apache.poi.xssf.usermodel.XSSFWorkbook;
+
+public class ExcelUtils {
+
+ public static final String HEADERINFO = "headInfo";
+ public static final String DATAINFON = "dataInfo";
+
+ /**
+ *
+ * @Title: getWeebWork
+ * @Description: TODO(根据传入的文件名获取工作簿对象(Workbook))
+ * @param filename
+ * @return
+ * @throws IOException
+ */
+ public static Workbook getWeebWork(String filename) throws IOException {
+ Workbook workbook = null;
+ if (null != filename) {
+ String fileType = filename.substring(filename.lastIndexOf("."),
+ filename.length());
+ FileInputStream fileStream = new FileInputStream(new File(filename));
+ if (".xls".equals(fileType.trim().toLowerCase())) {
+ workbook = new HSSFWorkbook(fileStream);// 创建 Excel 2003 工作簿对象
+ } else if (".xlsx".equals(fileType.trim().toLowerCase())) {
+ workbook = new XSSFWorkbook(fileStream);// 创建 Excel 2007 工作簿对象
+ }
+ }
+ return workbook;
+ }
+
+ /**
+ *
+ * @Title: writeExcel
+ * @Description: TODO(导出Excel表)
+ * @param pathname
+ * :导出Excel表的文件路径
+ * @param map
+ * :封装需要导出的数据(HEADERINFO封装表头信息,DATAINFON:封装要导出的数据信息,此处需要使用TreeMap
+ * ) 例如: map.put(ExcelUtil.HEADERINFO,List headList);
+ * map.put(ExcelUtil.DATAINFON,List>
+ * dataList);
+ * @param wb
+ * @throws IOException
+ */
+ public static void writeExcel(String pathname, Map map,
+ Workbook wb) throws IOException {
+ if (null != map && null != pathname) {
+ List