Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Pluralsight

Working with Files in Java Using the Java NIO API

via Pluralsight

Overview

Java I/O is one of the four core APIs of the JDK, on which many others are built, including database access and REST Services. In this course, you will learn how to work with files on a file system, and how to access text files.

The Java I/O API is a fundamental API of the JDK, at the core of database access APIs and web access APIs. In this course, Using the Java NIO API, you will learn how to handle files using the Files factory class, and how to deal with text files in Java. First, you will see how to manipulate files on the file system: how to create, copy, move, and delete them. Then, you will discover how to find files in a set of directories with two different approaches: visitor pattern, and the map / filter / reduce pattern, as implemented by the Stream API. Next, you will explore how to create and analyze text files. Finally, you will be shown how to deal with CharSets to handle exotic formats, as well as a real-world case study: the analysis of a CSV file. After watching this course, you will be ready to deal with file handling problems and you will be able to conduct advanced tasks to handle complex text files, which is essential for web and REST services.

Syllabus

  • Course Overview 1min
  • Accessing Files and Directories Using Java NIO Path 10mins
  • Reading and Writing Text Files Using the Java NIO API 17mins
  • Analyzing CSV Text Files Using the Stream API 10mins
  • Manipulating Files on a File System Using the Java NIO API 14mins

Taught by

Jose Paumard

Reviews

4.6 rating at Pluralsight based on 136 ratings

Start your review of Working with Files in Java Using the Java NIO API

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.