java programming

Опубликовано: 28 Февраль 2022
на канале: EduBlast
44
1

java input-output stream files #java #javatutorial #programming
java programming #loops #class #computerprogramming
java tutorial #programming #rpscprogrammer
#computerscience
#computers
#computerprogramming
#programmingtutorial
#Multithreaded programming :
#javaprogramming MANAGING INPUT/OUTPUT FILES IN JAVA
STREAMS FILES IN JAVA
WE HAVE USED VARIABLES AND ARRAYS FOR SORTING DATA INSIDE THE PROGRAMS.
PROBLEMS:
1- THE DATA IS LOST EITHER WHEN A VARIABLE GOES OUT OF SCOPE OR WHEN THE PORGRAM IS TERMINATED.
2- IT IS A DIFFICULT TO HANDLE LARGE VOULMES OF DATA USING VARIABES AND ARRAYS.
THE DATA IS STORED IN THESE DEVICES USING CONCEPT OF FILES. DATA STORTED IN FILES IS OFTEN CALLED PERSISTENT DATA.
A file is a collection of related records in placed in a particular area on the disk. A records in composed a several fields and filed is a group of charterers.
Storing and managing data using file is known as file processing. Which tasks such as creating files, updating files and manipulation of data.
The process of reading and writing objects is called object serialization.
Concepts of Streams: the flow of data into a program and output means the flow of data out of a program.
Java uses the concept of streams to represent the ordered sequence of data.
A stream presents a uniform, easy-to-use , object oriented interface between the program and the input/output decives .
Keyboard

Java program Screen
Mouse Printer
Memory Memory
Disk Disk
Network Network
Sources : Destination
Relationship of java program with i/o devices

A stream in java is path along which data flows. It has a source of data and destination for that data as depicted
1 features for creating and manipulating streams and files for reading and writing bytes.
Input stream classes : used to read 8-bit bytes include a super class known as InputStream and a number of subclasses for supporting various input-related functions.
Objects
InputStream
FileInput Stram PipeInput Stream ByteArray Input Stream Sequence input stream Object Input Stream String buffer input stream

FilterInputStream
BufferInputStream PublishedInputStream
DataInputStream
DataInput
(Hierarchy of input stream classes)


The reader class contains methods that are identical to those available in the inputstream class.
Writer stream: designed to perform all output operations on files.
objects
Reader
BufferReader StringReader
CharArrayReader PipeReader
InputStreamReader FilterReader
FileReader PushbackReader
Hierarchy of reader stream classes
   / @wonderumesh  


Смотрите видео java programming онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь EduBlast 28 Февраль 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 44 раз и оно понравилось 1 людям.