java nio
-
Core Java

Zero-Copy and the Page Cache: Why Kafka Is Fast, Using FileChannel.transferTo
Kafka moves enormous amounts of data, yet its brokers do surprisingly little work per byte. The secret is not clever…
Read More » -
Core Java

Converting Between Byte Arrays and Short Arrays in Java
This article demonstrates how to convert a byte array to a short array and convert a short array back to…
Read More » -
Core Java

How to Modify Property Files in Java
Property files are commonly used in Java applications to manage configuration data. They store key-value pairs and are easy to…
Read More » -
Core Java

How to Replace a Specific Word in a File Using Java
In this article, we explore several approaches to replacing a specific word within a text file using Java, including standard…
Read More » -
Core Java

Check if a File Is a PDF File in Java
In Java, determining whether a given file is a valid PDF is an important task when working with document processing…
Read More » -
Core Java

Count Files Recursively in Java
Working with file systems is a vital part of many Java applications, and counting files recursively in a directory tree…
Read More » -
Core Java

Send and Receive Serialized Objects via Java SocketChannel
Networking is crucial in modern applications, and Java offers powerful tools like SocketChannel for efficient networked systems. Using Java NIO’s…
Read More » -
Core Java

Guide to FileOutputStream vs. FileChannel
In Java, file handling is crucial for reading from and writing to files. Two common classes used for output operations…
Read More » -
Core Java

Guide to FileWriter vs BufferedWriter
In Java, writing data to files is a common requirement, and the choice of the writer class can significantly impact…
Read More »
- 1
- 2
