일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- SEQUENCE
- ibatis parameter
- IO
- 자바
- IT·컴퓨터
- 스프링
- 안드로이드
- 우편번호
- 개행처리
- ibatis bind
- 연동
- Oracle
- 외래키
- iPhone
- 설치
- Eclipse
- SQL
- Spring
- jdbc
- 아이폰
- MVC
- zipcode
- 오라클
- 예제
- ibatis 개행
- Android SDK
- Android
- 이클립스
- java
- Objective C
- Today
- Total
목록자바 (10)
MisoBoy Blog...
자~ 저번에는 FileReader 클래스를 사용하여 파일에 있는 데이터를 읽어오는 프로그램을 만들어 보았습니다. 이번에는 FileWriter 클래스를 이용하여 문제 데이터를 파일에 쓰는 프로그램을 만들어 보겠습니다. 파일을 읽을 때와 마찬가지로 파일로 데이터를 출력할 때도 세 단계의 작업이 필요합니다. 파일을 열고, 파일에 데이터를 쓰고, 파일을 닫는 작업 입니다. 파일을 열고 난 다음에는 writer 라는 메소드를 이용해서 파일에 데이터를 쓸 수 있습니다. 그럼 FileWriter 클래스에 대해 알아보도록 하겠습니다. 우선 Document API 로 가서 FileWriter 를 찾아 볼까요~ Doucument API에 들어가면 문자 데이터를 파일에 작성해야 하니 입출력 클래스에 있겠죠? JavaIO -..
Java NIO Buffer is operated a little bit complicatedly using flip(), rewind() mark() and rest(). But they can be grouped in some contexts, "Fill" and "Drain" Java NIO Buffer manipulation is done in two contexts, "Fill state" and "Drain state". "Fill state" means that data is put into the buffer and "Drain state" that data in the buffer is retrieved outside.(But data is not removed from the buffe..