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
- qwen3-coder-next
- React
- FileChannel
- io
- Java
- podman
- .dockerignore
- curl
- File
- 절대경로
- path
- podman compose
- glm-ocr
- Docker Compose
- html canvas
- getting started
- dockerfile
- config
- tauri
- Typescript
- Webpack
- Vite
- docker
- cli
- RandomAccessFile
- 시작하기
- Ollama
- vscode
Archives
- Today
- Total
목록FileChannel (1)
워로디스
Java IO RandomAccessFile + FileChannel 예제
Java NIO (New Input/Output)에서 채널(Channel)은 파일이나 네트워크 소켓 등의 I/O 서비스에 대한 연결을 나타냅니다. Java NIO의 FileChannel 클래스는 파일에 대한 랜덤 엑세스를 가능하게 합니다. 이 클래스를 사용하면 파일의 특정 위치로 이동하여 데이터를 읽거나 쓸 수 있습니다. RandomAccessFile 클래스와 함께 FileChannel을 사용하여 파일에 랜덤 엑세스를 수행할 수 있습니다. 예를 들어, 파일에서 특정 위치로 이동하고 데이터를 읽거나 쓰는 것이 가능합니다. 다음은 Java NIO를 사용하여 파일에 랜덤 엑세스하는 간단한 예제입니다.import java.io.RandomAccessFile;import java.nio.ByteBuffer;imp..
정리/Java
2026. 2. 4. 22:07
