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
- tomcat
- import
- DB 도메인
- IntelliJ
- Windows 10
- profile
- context
- find
- maVen
- VirtualBox
- Quartz
- Mac
- grep
- netsh
- xargs
- Eclipse
- 공통표준용어
- Windows
- GIT
- bash
- 단축키
- port
- resource
- lsof
- 네트워크
- web.xml
- ssh
- copy-dependencies
- Source
- JavaScript
Archives
- Today
- Total
develog
java file copy test 본문
public static void copyTest() throws Exception {
FileInputStream fis = new FileInputStream("aa.zip");
FileOutputStream fos = new FileOutputStream("bb.zip");
int bytesRead;
byte[] buffer = new byte[1024 * 2];
while ((bytesRead = fis.read(buffer, 0, buffer.length)) > -1) {
fos.write(buffer, 0, bytesRead);
}
fis.close();
fos.close();
}
'Dev > Java' 카테고리의 다른 글
quartz (0) | 2013.09.05 |
---|---|
Apache Derby 설치 (0) | 2013.08.24 |
[Maven] pom.xml (0) | 2013.08.13 |
[java] spring, mybatis config (0) | 2013.08.13 |
Java EE Documentation (0) | 2013.07.25 |
Comments