Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- web.xml
- JavaScript
- netsh
- Mac
- Source
- 줄바꿈 문자
- Windows 10
- 단축키
- profile
- ssh
- plugin
- find
- Quartz
- import
- xargs
- lsof
- grep
- GIT
- context
- 네트워크
- VirtualBox
- port
- bash
- vscode
- Eclipse
- IntelliJ
- resource
- maVen
- tomcat
- Windows
Archives
- Today
- Total
develog
XSSF write 본문
public void writeXSSF() {
FileOutputStream fileOut = null;
try {
Workbook wb = new XSSFWorkbook();
Sheet sheet = wb.createSheet("new sheet");
Row row = sheet.createRow(0);
Cell cell = row.createCell(0);
cell.setCellValue("wefwefwefwe");
fileOut = new FileOutputStream("c:/testXSSF.xlsx");
wb.write(fileOut);
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} finally {
try {
fileOut.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
'Dev > Java' 카테고리의 다른 글
console 에서 java 실행 (0) | 2012.05.09 |
---|---|
XSSF read (0) | 2012.04.29 |
XSSF iterate (0) | 2012.04.28 |
JDBC Driver 버전 확인 (0) | 2012.04.26 |
try catch finally - Flow (0) | 2012.04.26 |
Comments