Tagged articles
8 articles
Page 1 of 1
Java Companion
Java Companion
Apr 30, 2026 · Backend Development

JDK 26 Introduces ofFileChannel: Simplify Large File Chunk Uploads

JDK 26 adds HttpRequest.BodyPublishers.ofFileChannel, letting developers read specific file segments directly from a shared FileChannel without copying data into heap memory, dramatically reducing memory usage and simplifying parallel chunk uploads to object storage such as OSS or S3.

FileChannelHttpClientJava
0 likes · 12 min read
JDK 26 Introduces ofFileChannel: Simplify Large File Chunk Uploads
Lin is Dream
Lin is Dream
Jul 30, 2025 · Backend Development

Master Java NIO: Simplify Large File Read/Write with ByteBuffer in 5 Steps

This article explains the fundamentals of Java NIO, showing how to use Channels and ByteBuffer to efficiently read, write, and manipulate large files, including memory‑mapped files and RandomAccessFile alternatives, with clear code examples and step‑by‑step guidance.

ByteBufferFileChannelJava
0 likes · 18 min read
Master Java NIO: Simplify Large File Read/Write with ByteBuffer in 5 Steps
Lobster Programming
Lobster Programming
Mar 24, 2025 · Backend Development

Boost Java File Copy Performance: 5 Proven Methods Compared

Learn five Java file copy techniques—from basic streams to NIO Files.copy, FileChannel, and RandomAccessFile—detailing their implementations, performance differences, and ideal use cases for small, large, and massive files, helping you choose the most efficient method for your project.

BufferedStreamFileChannelJava
0 likes · 6 min read
Boost Java File Copy Performance: 5 Proven Methods Compared
Bin's Tech Cabin
Bin's Tech Cabin
Mar 28, 2024 · Backend Development

Why MappedByteBuffer Beats FileChannel (And When It Doesn’t) – Deep Linux Kernel Insights

This article examines the internal read/write mechanisms of Java's FileChannel and MappedByteBuffer on Linux kernel 5.4, compares their performance through detailed source analysis and benchmarks, and explains why MappedByteBuffer often outperforms FileChannel for small I/O but can be overtaken for larger transfers due to page‑fault and dirty‑page handling.

FileChannelJavaLinux kernel
0 likes · 28 min read
Why MappedByteBuffer Beats FileChannel (And When It Doesn’t) – Deep Linux Kernel Insights
Architect's Guide
Architect's Guide
Nov 6, 2022 · Backend Development

Zero‑Copy Techniques in Java: Buffers, MappedByteBuffer, Sendfile, and Netty

This article explains the concept of zero‑copy, how it eliminates redundant data copying in I/O operations, and demonstrates its implementation in Java through buffers, mmap+write, Sendfile, MappedByteBuffer, DirectByteBuffer, channel‑to‑channel transfers, and Netty’s composite buffers.

FileChannelJava NIOMappedByteBuffer
0 likes · 12 min read
Zero‑Copy Techniques in Java: Buffers, MappedByteBuffer, Sendfile, and Netty
Programmer DD
Programmer DD
Mar 15, 2021 · Fundamentals

Master Java NIO: From Basics to High‑Performance I/O with Real‑World Examples

This article provides a comprehensive guide to Java NIO, covering its core components—Channel, Buffer, and Selector—explaining the differences from traditional IO, demonstrating file, socket, and server implementations with detailed code samples, and illustrating advanced features such as memory‑mapped files, scatter/gather, and pipe communication.

ChannelFileChannelJava
0 likes · 31 min read
Master Java NIO: From Basics to High‑Performance I/O with Real‑World Examples
JavaEdge
JavaEdge
Nov 6, 2020 · Backend Development

Understanding Java NIO Channels: Read, Write, and Asynchronous I/O

Java NIO's Channel API offers bidirectional, asynchronous read/write operations using Buffers, with implementations such as FileChannel, DatagramChannel, SocketChannel, and ServerSocketChannel, and the article provides a practical FileChannel example illustrating buffer handling and the essential buf.flip() step.

AsynchronousChannelFileChannel
0 likes · 3 min read
Understanding Java NIO Channels: Read, Write, and Asynchronous I/O
ZhiKe AI
ZhiKe AI
Mar 8, 2017 · Fundamentals

Understanding Java NIO: Core Components and How They Differ from Traditional IO

This article explains Java NIO introduced in Java 1.4, covering its core components—Channels, Buffers, and Selectors—detailing channel types, buffer operations, non‑blocking behavior, selector usage, and code examples such as FileChannel and Pipe, and compares NIO with classic IO.

BuffersChannelsFileChannel
0 likes · 19 min read
Understanding Java NIO: Core Components and How They Differ from Traditional IO