jxl.Workbook rwb = null;
// 构建Workbook对象, 只读Workbook对象
// 直接从本地文件创建Workbook
// 从输入流创建Workbook
if (filePath != null) {
InputStream is = new FileInputStream(filePath);
rwb = Workbook.getWorkbook(is);
文章来源:
http://www.itshehui.com/forum.php?mod=viewthread&tid=849