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 |
Tags
- SQLSTATE=42705
- 필수질문
- 아이
- MSSQL
- XACT_STATE
- 교육법
- java
- spring
- 프론트컨트롤러
- ERROR_MESSAGE
- getChannel()
- 요약
- 자바
- transferTo
- 앵커멤버
- 진경혜
- SQL
- 홈스쿨링
- 재귀멤버
- TRANCOUNT
- 스프링
- renameTo
- 튜닝
- 요청매핑
- 의사소통
- 디스패처서블릿
- XWPF
- 배치
- git
- 함수
Archives
- Today
- Total
목록getChannel() (1)
필기노트
JAVA FileChannel을 이용한 파일전송
파일 전송을 할 때 FileChannel이 가장 효율적이다. import java.nio.channels.FileChannel; public class FileMove { public static void main(String[] args) throws IOException { File myFile = new File("C:"+File.separator+"MyJava"+File.separator+"my.bin"); File reFile = new File("C:"+File.separator+"YourJava"+File.separator+"my.bin"); if(myFile.exists()==false) { System.out.println("원본 파일이 준비되어 있지 않습니다."); return; } F..
JAVA
2023. 1. 4. 07:03