O'Reilly logo

JAVA Programming by K. Rajkumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 13

Processing Byte and Object Streams

OBJECTIVES
  • To create File object to obtain the details of files and directories such as length, date created, date modified, its name and many others
  • To filter file names in a directory using FileNameFilter
  • To filter absolute path names using FileFilter
  • To introduce input stream types
  • To read file contents using FileInputStream
  • To read strings into byte array using ByteArrayInputStream
  • To write bytes to file using FileOutputStream
  • To copy files as bytes
  • To process primitive data type values using DataInputStream and DataOutputStream
  • To generate students mark list using Data IO
  • To create Serializable objects
  • To write Serializable objects to files using ObjectOuputStream
  • To read Serializable objects ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required