package com.wls.excel;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
public class ExcelPoi {
/***
* 返回一个InputStream
* @return
*/
public static InputStream getInput(){
ByteArrayOutputStream baos = null;
ByteArrayInputStream bais = null;
try{
HSSFWorkbook workbook = new HSSFWorkbook();
HSSFSheet sheet = workbook.createSheet("one");
HSSFRow row = sheet.createRow(0);
HSSFCell cell = row.createCell((short)0);