Working with Java I/O API in Java SE Applications (Java SE 11 Developer Certification 1Z0-819)
In this course, you will learn how the API is organized and working, how you can solve common problems with I/O , and get hints on how to get ready for the certification.
What you'll learn
The Java I/O API is a fundamental API of the JDK and one of the topics of the Java SE 11 certification. In this course, Working with Java I/O API in Java SE Applications (Java SE 11 Developer Certification 1Z0-819), you will learn three main concepts. First, you will explore how to work with files using the File class and the Path interface. Next, you will see one of the key points of the certification: the organization of the API. It is first divided in two parts: the reading and the writing of elements. It is then divided in two more parts: one supporting the reading and writing and characters and the other the reading and writing of bytes. Finally, you will discover how to tell a low-level I/O stream operation from a high-level one. All common stream operations needed for the certification are also covered, along with serialization. When you are finished with this course, you will be ready to pass the Java I/O chapter of the certification.
Table of contents
- Introducing the Module and Its Agenda 1m
- Creating Instances of Files and Testing Files with the File Object 2m
- Creating and Testing Files and Directories with the File Object 3m
- Getting the Name, the Parent, and the Path of a File Instance 3m
- Constructing the Absolute Path and the Canonical Path of a File 2m
- Wrapping up the File Object and Some Trick Questions 2m
- Accessing Files with the Path Interface 2m
- Creating Path Instances Using Factory Methods from Path and Paths 3m
- Checking if a Path Is Absolute and Getting Its Root Element 2m
- Resolving a Path against Another Path Using resolve() 2m
- Resolving a Path against Another Path Using resolveSibling() 2m
- Computing a Relative Path with relativize() 2m
- Normalizing a Path with normalize() 1m
- Getting a Path from a File System 2m
- Wrapping up the Path Object and Some Trick Questions 2m
- Module Wrap Up 1m
- Introducing the Module and Its Agenda 1m
- Opening and Reading from a FileReader, Catching Exceptions 3m
- Reading the Content of a Text File Using a FileReader 3m
- Closing an I/O Resource Using the Try with Resources Pattern 4m
- Marking and Resetting a Reader 1m
- Wrapping up the Reader Object and Its Key Features 1m
- Writing Characters to a File Using a FileWriter 2m
- Writing Characters in a StringBuffer Using a StringWriter 2m
- Wrapping up the Writer Object and Its Key Features 1m
- Introducing the Buffering of Read and Write Operations 1m
- Creating a BufferedWriter with the Files Factory and Flushing It 4m
- Reading a File Line by Line with a BufferedReader 2m
- Providing a Charset and StandardOption to a Reader or a Writer 2m
- Wrapping up Bufferization and Its Key Features 3m
- Module Wrap Up 2m
- Introducing the Module and Its Agenda 2m
- Writing Bytes Using an OutputStream 3m
- Reading Bytes Using an InputStream 2m
- Reading and Writing Characters from Bytes 2m
- Writing a String in an Array of Bytes with OutputStreamWriter 2m
- Reading a String from an Array of Bytes with InputStreamReader 2m
- Wrapping up InputStreamReader and OutputStreamWriter 1m
- Writing Integers to a Byte Array Using DataOutputStream 3m
- Reading Integers from a Byte Array Using DataInputStream 2m
- Writing Serializable Objects to a File Using ObjectOuptutStream 4m
- Reading Objects from a File Using ObjectInputStream 1m
- Failing to Read Serialized Objects When the Class Is Missing 2m
- Failing to Read Serialized Objects in a Modified Class 1m
- Using SerialVersionUID to Deserialize Objects in Modified Classes 5m
- Wrapping up Serialization and Its Key Features 3m
- Indentifying Low-level Classes and High-level Classes in Java I/O 2m
- Module Wrap Up 1m
- Introducing the Module and Its Agenda 1m
- Getting and Using a Console Object 4m
- Writing and Reading Characters with the Console Object 2m
- Getting a Reader and a Writer from the Console Object 3m
- Wrapping up the Console Object, Its Reader, and Its Writer 2m
- Analyzing User Input Using a Scanner 3m
- Wrapping up the Scanner Object 1m
- Module Wrap Up 2m
- Course Wrap up, Final Advice, and Useful Links 4m