Thursday, June 18, 2009

Java.nio vs Java.io

NIO construction makes I/O faster than traditional I/O. Look at this my post published on SpiderLogic blog.

This document is not a Java.io or a Java.nio manual, or a technical document about Java.io and Java.nio use. It only attempts to compare these two packages, highlighting differences and features in the most simple way. Java.nio presents new stream commrunication aspects and inserts new buffer, file streaming and socket features (see more …).

java.io overview

This package is used for system input and output through data streams, and serialization. Streams support many different kinds of data, including simple bytes, primitive data types, localized characters, and objects (see more …).

File I/O, java.net socket, and more …

NIO API

The I/O performance, often, is a modern application critical aspect. Operative Systems (OS) continuously improve the I/O performance. JVM provides a uniform operating environment that helps the Java programmer in most of the differences between operating-system environments. This makes it faster and easier to write, but the OS feature becomes hidden. To increase IO performance you could write a specific code to access the OS feature directly, but this isn’t the best solution - your code could be OS dependent. Java.nio provides new equipment to address this problem. It provides high-performance I/O features to perform operations on commonly available commercial operating systems today (see more …).

java.nio overview, Non blocking mode, Buffers, Channels, Selector and more …

No comments:

Post a Comment