Java File Handling| Reading and Writing File in Java

Publicado em: 22 Fevereiro 2020
no canal de: Java code&Decode
91
5

Java File Handling| Reading and Writing File in Java
-------------------------------------------------------------------------------------------------------------------
*IO Stream: Stream are used to perform sequential flow of data. Sequential of data one location to and other location. The streams are classified into two types. They are:
1. Byte Streams
2. Character Streams

1. Byte Streams: (Byte by Byte) The Streams that will the perform the operations Byte by Byte are called as ‘Byte Streams’. These Streams can handle any kind of data like Text, Audio, Video, Images etc. The Byte Streams are further classified into two categories.
1.1.Input Stream: These Streams are used to perform Reading operation from any resource using these Streams we can read data into an application.
Ex: File InputStream
Data InputStream etc.
1.2.OutputStream: These Streams are used to perform writing operation to any resource. These Streams can he used to send data out of the applications.
Ex: FileOutputStream
BufferedOutputStream etc.
2. Character Streams: (char by char)The Streams that perform the operation character by character are called as character Streams. These Streams can handle only text. There also called as Text Streams. The character Streams are faster then Byte Streams. The character Streams are further classified into two catagories.
2.1. Reader: These Streams are similar to Input Streams performing Reading operations from various resources.
Ex: FileReader
BufferedReader
2.2. Writer: These Streams are similar to output Streams performing writing operations on to various resources.
Ex: FileWriter
PrintWriter
All the Stream related classes are available in“java.io.package”.


Nesta página do site você pode assistir ao vídeo on-line Java File Handling| Reading and Writing File in Java duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Java code&Decode 22 Fevereiro 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 91 vezes e gostou 5 espectadores. Boa visualização!