Created
November 24, 2010 09:25
-
-
Save zaki50/713386 to your computer and use it in GitHub Desktop.
JExcel API のサンプル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class JExcelSample { | |
public void sample(File inputFile) { | |
final Workbook masterBook = Workbook.getWorkbook(inputFile); | |
try { | |
for (Sheet sheet : masterBook.getSheets()) { | |
if (sheet == null) { | |
assert false : "null は無いはず。"; | |
continue; | |
} | |
// お好きなように | |
for (int i = 0; i < sheet.getRows(); i++) { | |
Cell[] columns = sheet.getRow(i); | |
} | |
} | |
} finally { | |
masterBook.close(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment