- Java NIO - Discussion
- Java NIO - Useful Resources
- Java NIO - Quick Guide
- Java NIO - FileLock
- Java NIO - CharSet
- Java NIO - AsynchronousFileChannel
- Java NIO - File
- Java NIO - Path
- Java NIO - Pipe
- Java NIO - Selector
- Java NIO - Buffer
- Java NIO - Gather
- Java NIO - Scatter
- Java NIO - Server Socket Channel
- Java NIO - Socket Channel
- Java NIO - DataGram Channel
- Java NIO - File Channel
- Java NIO - Channels
- Java NIO vs JAVA IO
- Java NIO - Environment Setup
- Java NIO - Overview
- Java NIO - Home
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Java NIO - Overview
Java.nio package was introduced in java 1.4. In contrast of java I/O in java NIO the buffer and channel oriented data flow for I/O operations is introduced which in result provide faster execution and better performance.
Also NIO API offer selectors which introduces the functionapty of psten to multiple channels for IO events in asynchronous or non blocking way.In NIO the most time-consuming I/O activities including filpng and draining of buffers to the operating system which increases in speed.
The central abstractions of the NIO APIs are following −
Buffers,which are containers for data,charsets and their associated decoders and encoders,which translate between bytes and Unicode characters.
Channels of various types,which represent connections to entities capable of performing I/O operations
Selectors and selection keys, which together with selectable channels define a multiplexed, non-blocking I/O facipty.