NIO Overview

NIO API's were introduced in Java 1.4 and had since been used for wide number of applications. NIO API's allows IO operations without blocking the processing with it.

The java.nio.* package contains following key constructs

  • Buffers - Data Containers
  • Chartsets - Containers translators for bytes and Unicode
  • Channels - represents connections to entities capable of I/O operations
  • Selectors - provide selectable, multiplexed non-blocking IO