--- id: java-io-streams title: "Java IO Streams" category: "Programming_Language" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["byte streams", "character streams", "자바 IO 스트림"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.88 created_at: 2026-07-04 updated_at: 2026-07-04 review_reason: "" merge_history: [] tags: ["java", "programming", "w3schools", "io", "streams"] raw_sources: ["https://www.w3schools.com/java/java_io_streams.asp"] applied_in: [] github_commit: "" --- # [[Java IO Streams]] ## 🎯 한 줄 통찰 (One-line insight) The `File` class and I/O Streams solve completely different problems — `File` only inspects/manages files (existence, size, create/delete) but CANNOT read or write content, while streams (byte or character) are the only way to actually move data in or out of a file. [S1] ## 🧠 핵심 개념 (Core concepts) - **`File` class limitation** — provides metadata and file-management operations, but no content I/O. [S1] - **Byte streams** — work with raw binary data (images, audio, PDFs); examples: `FileInputStream`, `FileOutputStream`. [S1] - **Character streams** — work with text, automatically handling character encoding; examples: `FileReader`, `FileWriter`, `BufferedReader`, `BufferedWriter`. [S1] - **Choosing rule** — character streams for text, byte streams for binary data. [S1] ## 📖 세부 내용 (Details) - 이 챕터는 개념 분류 중심으로 별도 실행 코드 예제가 없음 — Byte Streams(FileInputStream/FileOutputStream)와 Character Streams(FileReader/FileWriter/BufferedReader/BufferedWriter)의 구분표를 제시. [S1] ## ⚖️ 모순 및 업데이트 (Contradictions & updates) 소스에서 모순되는 정보는 발견되지 않음. ## 🛠️ 적용 사례 (Applied in summary) 현재 발견된 실제 적용 사례가 없습니다 — 텍스트 vs 바이너리 데이터에 따라 스트림 종류를 선택하는 기준이 이후 FileInputStream/FileOutputStream/BufferedReader/BufferedWriter 챕터의 공통 분류 기준이다. [S1] ## 💻 코드 패턴 (Code patterns) 해당 챕터는 개념 소개 중심으로 별도 코드 예제가 없음 — 다음 챕터([[Java FileInputStream]])에서 바이트 스트림 실습이 시작된다. ## ✅ 검증 상태 및 신뢰도 - **상태:** draft - **검증 단계:** conceptual - **출처 신뢰도:** B (W3Schools — widely used educational reference, not a primary standards body) - **신뢰 점수:** 0.88 - **중복 검사 결과:** 신규 생성 (New discovery) ## 🔗 지식 그래프 (Knowledge Graph) - **상위/루트:** [[Java Tutorial]] - **관련 개념:** [[Java Files]], [[Java FileInputStream]], [[Java FileOutputStream]], [[Java BufferedReader]], [[Java BufferedWriter]] - **참조 맥락:** File 클래스와 스트림의 역할 분리 — 바이트/문자 스트림 챕터들의 도입부. ## 📚 출처 (Sources) - [S1] W3Schools — Java I/O Streams — https://www.w3schools.com/java/java_io_streams.asp ## 📝 변경 이력 (Change history) - 2026-07-04: Initial draft synthesized from the W3Schools "Java I/O Streams" page (Astra wiki-curation, P-Reinforce v3.1 format).