Enjoying the preview?
This is the free first lesson. Get full access: request a demo or sign in.
Enjoying the preview?
This is the free first lesson. Get full access: request a demo or sign in.
In these lessons you will see how to read and write to and from the file system. The legacy file API is used across many older projects, frameworks and libraries. Despite its age, the legacy API is not deprecated and you can still use it with any of the latest Java versions.
You’ll learn how java.nio.file.Path does everything java.io.File can, and generally in a better way, with the new classes able to support symlinks, proper file attributes, metadata, ACLs and more. When working with files or paths, you will likely be using the java.nio.file.Files class, and we’ll cover many common functions that operate on files and directories. Input and Output encompass a broad swath of sources and we naturally need to deal with character and byte file contents. The NIO library is chock-full of everything we need to accomplish whatever I/O requirements we may face.
Learning Objectives:
• Describe the new NIO library
• Understand how to read and write to the file system
• Explain how to create temporary files
It covers how to read and write to and from the file system in Java, including the NIO library, the java.nio.file.Path and java.nio.file.Files classes, file metadata, and creating temporary files. Lessons include Reading, Writing, and File Metadata.
Both. It explains the legacy file API, which is still usable and not deprecated, while showing how java.nio.file.Path and the NIO library generally do the same work better, with support for symlinks, file attributes, metadata, and ACLs.
You will gain skills in File I/O, I/O processing, Java 11, Java Advanced Imaging, Java APIs, and Non-Blocking I/O in Java.
The objectives are to describe the new NIO library, understand how to read and write to the file system, and explain how to create temporary files.