5/7 - Object serialization in Java (saving any Object in Java to a file)

Опубликовано: 06 Октябрь 2024
на канале: JavaHandsOnTeaching
381
5

Series on persistence in Java using files. Focus on difference between text files, binary formats and richer text files such as CSV.

Playlist:
   • Java File Handling  

1/7 - What are files
   • 1/7 - What are files  
Explains what files are and how file types are different and what they look like in binary, what encoding is and the difference between the file contents and how it is shown

2/7 - Using Java IO - Simple
   • 2/7 - Using Java IO - Simple  
Simple examples og reading and writing text files in Java.

3/7 - Using Java IO with buffers
   • 3/7 - Java Buffered Reader and Writer...  
Adding the buffered reader and writer to java io filereader/filewriter.

4/7 - Using Java nio
   • 4/7 - Using Java nio  
Using the java.nio library for working more easily with text files

5/7 - Object serialization in Java (saving any Object in Java to a file)
   • 5/7 - Object serialization in Java (s...  
How to save an entire object into a binary file, very easy, but with many drawbacks.

6/7 - Writing random access binary files directly on disk
   • 6/7 - Writing random access binary fi...  
How to design, write and maintain object hierarchies in binary format.

7/7 - Exception handling in Java - Graceful handling
   • 7/7 - Exception handling in Java - Gr...  
Looking at different types of exceptions and how to create your own, along with advice on best practice.