In this quick tutorial, we learn how to fix the java.io.EOFException, a special type of IOException.
Search Results for: java.io
Serialization with FlatBuffers in Java
Explore the FlatBuffers library and its capabilities to serialize and deserialize complex data.
How to Pretty-Print a Map in Java
Learn different approaches for pretty-printing maps in Java.
Context-Specific Deserialization Filters in Java 17
Explore Java’s latest enhancement, Context-Specific Deserialization Filter (JEP 415), in action.
Convert File to Byte Array in Java
Learn how to convert a file into a byte array in Java.
CATALINA_OPTS vs. JAVA_OPTS in Apache Tomcat
A quick and practical comparison between CATALINA_OPTS and JAVA_OPTS in Apache Tomcat.
Detect EOF in Java
Explore several methods for detecting the end-of-file character in Java.
Update an Existing Amazon S3 Object Using Java
Learn how to replace the existing file content with newer content for the same AWS S3 path using AWS Java SDK.
Executing SQL Script File in Java
Learn about the database utilities provided by MyBatis and Spring JDBC to execute SQL files.
Converting Relative to Absolute Paths in Java
Learn how to quickly convert from relative to absolute paths in Java.
Java IllegalStateException: “getInputStream() has already been called for this request”
Learn what causes IllegalStateException when we call the ServletRequest.getReader() method in a Java web application and understand how to fix it.
javax vs. java Package
Explore examples of both java and javax packages and understand the key differences between them.
PrintStream vs PrintWriter in Java
A comparison between two classes to output content: PrintWriter and PrintStream, explaining the similarities and differences between them.
Errors and Exceptions in Java
Explore the differences between errors and exceptions in the Java ecosystem.
Writing a List of Strings Into a Text File
A quick and practical guide to writing a List of Strings into a text file.
Getting the Filename From a String Containing an Absolute File Path
Learn how to extract the filename from an absolute path using core Java and Apache Commons.
What Is the Difference Between NIO and NIO.2?
Understand Java IO functionalities and how they changed throughout different Java versions.
Reading Values From Excel in Java
Learn how to access different cell values using Apache POI.
List All the Classes Loaded in the JVM
Learn different techniques to list all classes loaded in the JVM
Serialization Validation in Java
Learn about validating serializable objects in Java.