Java Fundamentals: Input/Output

Java I/O is one of the four core APIs of the JDK, on which many others are built, including Database access, Web Services, and REST Services. In this course, you'll learn everything you need to write and understand Java I/O code.
Course info
Rating
(52)
Level
Intermediate
Updated
Dec 19, 2017
Duration
3h 55m
Table of contents
Course Overview
Introduction to Java I/O, Organization of the API
Reading Characters
Writing Characters
Reading and Writing Bytes
Reading and Writing Data and Objects
Computing the SerialVersionUID of a Class 2m Introducing the Module: Reading and Writing Objects 1m Introducing the Serialization Mechanism in the JDK 1m Live Coding: Deserializing Externalized Person Objects 2m Live Coding: Deserializing Person Objects Serialized with a Proxy 3m Live Coding: Deserializing Person Objects Using ReadObject 4m Live Coding: Deserializing a List of Person Objects 2m Live Coding: Introducing Serialization and the Serialized File 4m Live Coding: Making a String Field Transient 1m Live Coding: Serializing Person Objects Using Externalizable 2m Live Coding: Serializing Person Objects Using WriteObject 2m Live Coding: Serializing Person Objects Using a Proxy Class 3m Live Coding: Serializing a List of Serializable Objects 1m Making Relations Transient to Prevent Serialization 2m Making a Class Serializable, Understanding the SerialVersionUID 3m Serializing Proxy Objects Instead of the Serializable Object 2m Understanding the Deserialization Process 3m Understanding the Portable Serialization of Objects 4m Using Externalizable to Serialize Objects Identity 3m Using ReadObject/WriteObject to Override Default Serialization 4m What Information Do You Need in a Serialized Form of an Object? 3m Wrap-up 1m Wrapping up Serialization with Proxy Objects 1m Wrapping up the 3 Ways of Overriding the Default Serialization 1m Wrapping up the ReadObject/WriteObject Methods 1m Wrapping up the Serialization/deserialization Mechanism 1m Writing and Reading Serialized Objects to Binary Streams 2m
Dealing with Hybrid Streams of Text and Bytes
Description
Course info
Rating
(52)
Level
Intermediate
Updated
Dec 19, 2017
Duration
3h 55m
Description

The Java I/O API is a fundamental API of the JDK, at the basis of database access APIs and Web access APIs. In this course, Java Fundamentals: Input/Output, you'll learn all the details of this API, both the theoretical aspects on slides and the patterns during extended live coding sessions. First, you'll delve into code in action, showing you real life problem solving techniques. Next, you'll explore how to read and write characters, how to create complex files mixing text and raw bytes, and how to create archive files using the ZIP format. Finally, you'll discover how to use serialization efficiently and how to deal with errors due to obsolete serialized objects. By the end of this course, you'll have the necessary knowledge to deal with complex Java I/O problems in existing legacy applications and new developments.

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
Hi everyone. My name is José. I am very excited to present my new course on the Java. io API. I am talking to you from Paris, where I live and work as an assistant professor at the university. I am a Java Champion and Java Rock Star for JavaOne. Java. io is a fundamental API to access discs and nice works. Many other APIs are built on top of Java. io, including JDBC, Servlets, Web and REST services. In this course, we will see how to use Java. io to read and write characters of robots, primitive types, and objects using the serialization mechanism. Also, the standard ways to override this mechanism. We will also see how we can leverage decoration to read and write compressed files into zip format. About half of this course is life coding, so that you can see how Java. io works exactly. Before you move on, be sure to be familiar with the Java language, including the writing of basic number expressions. For that, you can check the pro site Java library. There are many technical elements covered in this course, but don't be afraid of that. Let me guide you through this fundamental API of the JDK.