SlideShare a Scribd company logo
1 of 34

      
       Язык Java 
      
     
      
       Потоки 
       java.io 
      
     
      
       Алексей Бованенко

      
       Введение 
      
     
      
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],

      
       Потоки в java.io 
      
     
      
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],

      
       FileInputStream 
      
     
      
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],

      
       FileOutputStream 
      
     
      
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],

      
       Пример использования (использование методов read() и write(int)) 
      
     
      
       ,[object Object],

      
       Пример (продолжение) 
      
     
      
       ,[object Object],

      
       Пример использования (использование методов read(byte[]) и write(byte[])) 
      
     
      
       ,[object Object],

      
       Пример (продолжение) 
      
     
      
       ,[object Object],

      
       Пример использования (использование методов read(byte[], int, int) и write(byte[], int , int)) 
      
     
      
       ,[object Object],

      
       Пример (продолжение) 
      
     
      
       ,[object Object],

      
       BufferedInputStream 
      
     
      
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],

      
       BufferedOutputStream 
      
     
      
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],

      
       Пример использования  BufferedInputStream/BufferedOutputStream 
      
     
      
       ,[object Object],

      
       Пример использования  (продолжение) 
      
     
      
       ,[object Object],

      
       InputStreamReader 
      
     
      
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],

      
       OutputStreamWriter 
      
     
      
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],

      
       Пример использования  OutputStreamWriter/InputStreamReader 
      
     
      
       ,[object Object],

      
       Пример использования  (продолжение) 
      
     
      
       ,[object Object],

      
       FileReader 
      
     
      
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],

      
       FileWriter 
      
     
      
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],

      
       Пример использования  FileReader и FileWriter 
      
     
      
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],

      
       Пример использования (продолжение) 
      
     
      
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],

      
       BufferedReader 
      
     
      
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],

      
       BufferedWriter 
      
     
      
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],

      
       Пример использования   BufferedReader/BufferedWriter 
      
     
      
       ,[object Object],

      
       DataInputStream 
      
     
      
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],

      
       DataOutputStream 
      
     
      
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],
       ,[object Object],

      
       Пример использования DataInputStream/DataOutputStream 
      
     
      
       ,[object Object],

      
       Пример использования (продолжение) 
      
     
      
       ,[object Object],

      
       ObjectInputStream 
      
     
      
       ,[object Object],
       ,[object Object],
       ,[object Object],

      
       ObjectOutputStream 
      
     
      
       ,[object Object],
       ,[object Object],
       ,[object Object],

      
       Пример использования ObjectInputStream/ObjectOutputStream 
      
     
      
       ,[object Object],

      
       Конец 
      
     
      
       Вопросы 
       e-mail: a.bovanenko@gmail.com

More Related Content

What's hot

What's hot (12)

Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
Dynamic Python
Dynamic PythonDynamic Python
Dynamic Python
 
File handling & regular expressions in python programming
File handling & regular expressions in python programmingFile handling & regular expressions in python programming
File handling & regular expressions in python programming
 
Linux basics
Linux basicsLinux basics
Linux basics
 
What is Python?
What is Python?What is Python?
What is Python?
 
Unit5 C
Unit5 C Unit5 C
Unit5 C
 
Chapter 5 - THREADING & REGULAR exp - MAULIK BORSANIYA
Chapter 5 - THREADING & REGULAR exp - MAULIK BORSANIYAChapter 5 - THREADING & REGULAR exp - MAULIK BORSANIYA
Chapter 5 - THREADING & REGULAR exp - MAULIK BORSANIYA
 
Learn Python The Hard Way Presentation
Learn Python The Hard Way PresentationLearn Python The Hard Way Presentation
Learn Python The Hard Way Presentation
 
Python Tutorial
Python TutorialPython Tutorial
Python Tutorial
 
Introduction to python 3
Introduction to python 3Introduction to python 3
Introduction to python 3
 
Python ppt
Python pptPython ppt
Python ppt
 
Introduction to programming with python
Introduction to programming with pythonIntroduction to programming with python
Introduction to programming with python
 

Viewers also liked (6)

Perl. Anonymous arrays, hashes, subroutines. Closures
Perl. Anonymous arrays, hashes, subroutines. ClosuresPerl. Anonymous arrays, hashes, subroutines. Closures
Perl. Anonymous arrays, hashes, subroutines. Closures
 
Regular Expressions
Regular ExpressionsRegular Expressions
Regular Expressions
 
Конвертация строковых данных в числовые
Конвертация строковых данных в числовыеКонвертация строковых данных в числовые
Конвертация строковых данных в числовые
 
ZIP, GZIP Streams in java
ZIP, GZIP Streams in javaZIP, GZIP Streams in java
ZIP, GZIP Streams in java
 
File. Java
File. JavaFile. Java
File. Java
 
Pointers
PointersPointers
Pointers
 

Similar to Java IO. Streams

Itp 120 Chapt 19 2009 Binary Input & Output
Itp 120 Chapt 19 2009 Binary Input & OutputItp 120 Chapt 19 2009 Binary Input & Output
Itp 120 Chapt 19 2009 Binary Input & Output
phanleson
 
basics of file handling
basics of file handlingbasics of file handling
basics of file handling
pinkpreet_kaur
 
Basics of file handling
Basics of file handlingBasics of file handling
Basics of file handling
pinkpreet_kaur
 
Chapter 10.3
Chapter 10.3Chapter 10.3
Chapter 10.3
sotlsoc
 
Understanding java streams
Understanding java streamsUnderstanding java streams
Understanding java streams
Shahjahan Samoon
 
Files in C++.pdf is the notes of cpp for reference
Files in C++.pdf is the notes of cpp for referenceFiles in C++.pdf is the notes of cpp for reference
Files in C++.pdf is the notes of cpp for reference
anuvayalil5525
 

Similar to Java IO. Streams (20)

26 io -ii file handling
26  io -ii  file handling26  io -ii  file handling
26 io -ii file handling
 
Java - File Input Output Concepts
Java - File Input Output ConceptsJava - File Input Output Concepts
Java - File Input Output Concepts
 
Itp 120 Chapt 19 2009 Binary Input & Output
Itp 120 Chapt 19 2009 Binary Input & OutputItp 120 Chapt 19 2009 Binary Input & Output
Itp 120 Chapt 19 2009 Binary Input & Output
 
What is java input and output stream?
What is java input and output stream?What is java input and output stream?
What is java input and output stream?
 
What is java input and output stream?
What is java input and output stream?What is java input and output stream?
What is java input and output stream?
 
Input output files in java
Input output files in javaInput output files in java
Input output files in java
 
basics of file handling
basics of file handlingbasics of file handling
basics of file handling
 
Basics of file handling
Basics of file handlingBasics of file handling
Basics of file handling
 
Input/Output Exploring java.io
Input/Output Exploring java.ioInput/Output Exploring java.io
Input/Output Exploring java.io
 
Files and streams In Java
Files and streams In JavaFiles and streams In Java
Files and streams In Java
 
Io Streams
Io StreamsIo Streams
Io Streams
 
Java program file I/O
Java program file I/OJava program file I/O
Java program file I/O
 
Chapter 10.3
Chapter 10.3Chapter 10.3
Chapter 10.3
 
JAVA
JAVAJAVA
JAVA
 
Understanding java streams
Understanding java streamsUnderstanding java streams
Understanding java streams
 
CORE JAVA-1
CORE JAVA-1CORE JAVA-1
CORE JAVA-1
 
File Handling in Java Oop presentation
File Handling in Java Oop presentationFile Handling in Java Oop presentation
File Handling in Java Oop presentation
 
File Input and output.pptx
File Input  and output.pptxFile Input  and output.pptx
File Input and output.pptx
 
Files in C++.pdf is the notes of cpp for reference
Files in C++.pdf is the notes of cpp for referenceFiles in C++.pdf is the notes of cpp for reference
Files in C++.pdf is the notes of cpp for reference
 
File Input & Output
File Input & OutputFile Input & Output
File Input & Output
 

More from Alexey Bovanenko

Исключительные ситуации
Исключительные ситуацииИсключительные ситуации
Исключительные ситуации
Alexey Bovanenko
 
Drag And Drop Windows Forms
Drag And Drop Windows FormsDrag And Drop Windows Forms
Drag And Drop Windows Forms
Alexey Bovanenko
 

More from Alexey Bovanenko (20)

Python sqlite3
Python sqlite3Python sqlite3
Python sqlite3
 
Python. re
Python. rePython. re
Python. re
 
python dict
python dictpython dict
python dict
 
Python. Строки
Python. СтрокиPython. Строки
Python. Строки
 
Python. Введение
Python. ВведениеPython. Введение
Python. Введение
 
Nio java
Nio javaNio java
Nio java
 
Assert c
Assert cAssert c
Assert c
 
Обработка символов в языке C
Обработка символов в языке CОбработка символов в языке C
Обработка символов в языке C
 
System c
System cSystem c
System c
 
Javascript functions
Javascript functionsJavascript functions
Javascript functions
 
Javascript String object
Javascript String objectJavascript String object
Javascript String object
 
Конструктор копирования
Конструктор копированияКонструктор копирования
Конструктор копирования
 
Tempale Intro
Tempale IntroTempale Intro
Tempale Intro
 
transaction. php
transaction. phptransaction. php
transaction. php
 
cookie. support by php
cookie. support by phpcookie. support by php
cookie. support by php
 
php sessions
php sessionsphp sessions
php sessions
 
Classes: Number, String, StringBuffer, StringBuilder
Classes: Number, String, StringBuffer, StringBuilderClasses: Number, String, StringBuffer, StringBuilder
Classes: Number, String, StringBuffer, StringBuilder
 
Объект Logger
Объект LoggerОбъект Logger
Объект Logger
 
Исключительные ситуации
Исключительные ситуацииИсключительные ситуации
Исключительные ситуации
 
Drag And Drop Windows Forms
Drag And Drop Windows FormsDrag And Drop Windows Forms
Drag And Drop Windows Forms
 

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 

Java IO. Streams

  • 1. Язык Java Потоки java.io Алексей Бованенко
  • 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.
  • 32.
  • 33.
  • 34. Конец Вопросы e-mail: a.bovanenko@gmail.com