Skip to Content
The Java Workshop
book

The Java Workshop

by David Cuartielles, Pradeep Kumar Gupta, Scott Cosentino, Andreas Göransson, Eric Foster-Johnson, Avinash Kate
October 2019
Beginner
606 pages
10h 37m
English
Packt Publishing
Content preview from The Java Workshop

8. Sockets, Files, and Streams

Overview

This chapter will teach you to work with external data storage systems. In the early sections, you will be taken through how to list the contents of directories—the logical first step to learning to create, open, read, and write to external files using Java. From there, you will study different methods, buffered and unbuffered, and how to distinguish between them. You will then learn to identify two main application programming interfaces (APIs), java.io and java.nio, their respective relationship to the aforementioned methods, and when and where to use them. In this chapter's final activity, you will be asked to use all these Java skills and tools in order to communicate between two different programs ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Modern Java Collections

Modern Java Collections

Simon Roberts
Java By Comparison

Java By Comparison

Simon Harrer, Linus Dietz, Jörg Lenhard

Publisher Resources

ISBN: 9781838986698Supplemental Content