Java File Processing - PowerPoint PPT Presentation

1 / 4
About This Presentation
Title:

Java File Processing

Description:

Java File Processing ... FileReader, FileWriter A Step Further Class File: retrieves information about files or directores Class Scanner: ... – PowerPoint PPT presentation

Number of Views:35
Avg rating:3.0/5.0
Slides: 5
Provided by: PaulD259
Category:

less

Transcript and Presenter's Notes

Title: Java File Processing


1
Java File Processing
2
The Basics
  • File processing uses classes from java.io
  • Java views a file as a sequential stream
  • Bytes FileInputStream, FileOutputStream
  • Unicode Characters FileReader, FileWriter

3
A Step Further
  • Class File retrieves information about files or
    directores
  • Class Scanner used to input data from the
    keyboard
  • Class Formatter used to format output

4
Even Further
  • Serialized Object
  • An object written to a file
  • The object written contains type information
  • Deserialized Object
  • An object read from a file
  • Type information used to reconstruct the object
  • Classes ObjectInputStream, ObjectOutputStream
  • These wrap normal i/o streams
  • Objects that are written must implement class
    Serializable
Write a Comment
User Comments (0)
About PowerShow.com