November 2024
Intermediate to advanced
499 pages
12h 13m
English
In this chapter, you will learn how to work with files, directories, and web pages, and how to read and write data in binary and text format. You will also find a discussion of regular expressions, which can be useful for processing input. (I couldn’t think of a better place to handle that topic, and apparently neither could the Java developers—when the regular expression API specification was proposed, it was attached to the specification request for “new I/O” features.) Finally, this chapter shows you the object serialization mechanism that lets you store objects as easily as you can store text or numeric data.
The key points of this chapter are:
An InputStream is a source of bytes, and an OutputStream ...
Read now
Unlock full access