Working with Files in Java Using the Java NIO API

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.
Course info
Rating
(28)
Level
Intermediate
Updated
Apr 3, 2020
Duration
53m
Table of contents
Course Overview
Accessing Files and Directories Using Java NIO Path
Reading and Writing Text Files Using the Java NIO API
Analyzing CSV Text Files Using the Stream API
Manipulating Files on a File System Using the Java NIO API
Description
Course info
Rating
(28)
Level
Intermediate
Updated
Apr 3, 2020
Duration
53m
Description

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, Working with Files in Java 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.

About the author
About the author

Passionate about programming computers for over 20 years, Jose made his debut in assembler and C, C for SIMD parallel machines before adopting Java as an object-oriented language. Assistant professor in Paris North University for more than 15 years, Jose also brings his expertise to many projects, in various industrial fields.

More from the author
Using Lambda Expressions in Java Code
Intermediate
1h 12m
Jun 16, 2020
More courses by Jose Paumard
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
[Autogenerated] you know my name is Josie. Average of a Champion and Joe, one rock star. I'm talking to you from Berries where I leave and I'm so very happy to present my new clothes. Working with five java, using the Nou a P I in just one hour, this coast shows you two things First, how to handle fires using the fire's factory class and second, how to deal with a text fight in Java. First you will see how to read, fired and there with exiting former. It's not compatible with utf eight. I will also show you the exceptions thrown by Borghi code on how to fix them. Then you will see how to analyze the CV five. Using the map, it'll reduce approach implemented. Using the stream a p I. You will map text lines of to create objects on dhe. Filter them to remove common side and you will also flat matte them to deal with buggy says benign. Second, you will see how to find fight in a yorkie of directories using the work fight Tree Pattana and then how to analyze a directory structure with a map filtering GIs approach. Using the work pattern even if this hour is packed with information. Don't worry. It's also full of examples and use case and notices. I'm very happy to be your steward for this new clothes. And I can't wait to see how you were leverage all these in your applications.