Bài giảng "Công nghệ Java - Chương 8: Java input/output" cung cấp cho người học các kiến thức: Stream concepts, input streams, output streams, reader, writer, object serialization, object input stream, object output stream. . | CÔNG NGHỆ JAVA CH8. JAVA INPUT/OUTPUT Quang Dieu Tran PhD 4/7/2018 1 INPUT/OUTPUT STREAMS 1. 2. 3. 4. 5. 6. 7. 8. Stream concepts Input Streams Output Streams Reader Writer Object Serialization Object Input Stream Object Output Stream 4/7/2018 2 Stream concepts File information Memory Program Network Program • Data exchange • Data exchange type: Character, Object, voice, picture, audio, video. 4/7/2018 3 Stream • • • • • • Stream: – dòng thông tin giữa 2 tác nhân (mức cao) – một dãy tuần tự các byte (mức thấp) Một stream được gắn với một nguồn (source), hay một đích (destination) Stream operations: – open stream – close stream – read – write – seek Input stream: support reading functions Output stream: support writing functions Filter stream: buffer 4/7/2018 4 Input & Output Stream This image cannot currently be displayed. Hình 1: Chương trình xử lý dữ liệu từ 1 input stream Hình 2: Chương trình ghi dữ liệu ra output .