[NIO] 파일 복사를 빠르게 하기
※ 일반 복사 방법 (JDK 1.4이전 IO 패키지 이용) import java.io.*; public static void copyFile(String source, String target) throws IOException { FileInputStream fis = new FileInputStream(source); FileOutputStream fos = new FileOutputStream(target); try { byte[] buf = new byte[1024]; int i = 0; while ((i = fis.read(buf)) != -1) { fos.write(buf, 0, i); } } catch (IOException e) { throw e; } finally { if (fis != ..
Web Dev/JAVA
2013. 4. 18. 12:25
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 제이쿼리
- Filter
- 항공편
- submit
- jquery
- 인천공항
- regexp
- 실시간
- event
- 비행기
- html
- attr
- MySQL
- create
- select
- jsp
- javascript
- If
- Oracle
- Selector
- asp
- ready
- focus
- centOS
- Click
- Drop
- android
- Next
- 기초
- dom
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함