O'Reilly logo

Learn Java for Android Development, Second Edition by Jeff Friesen

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    11

Performing Classic I/O

Applications often input data for processing and output processing results. Data is input from a file or some other source and is output to a file or some other destination. Java supports I/O via the classic I/O APIs located in the java.io package and the new I/O APIs located in java.nio and related subpackages (and java.util.regex). This chapter introduces you to the classic I/O APIs.

Note   You’ve already experienced classic I/O in the context of Chapter 1’s Standard I/O coverage, Chapter 8’s Process class, and Chapter 10’s ZIP and JAR APIs.

Working with the File API

Applications often interact with a filesystem , which is usually expressed as a hierarchy of files and directories starting from a root directory ...

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