Java NIO Introduction
来源:互联网 发布:安卓局域网软件 编辑:程序博客网 时间:2024/05/18 03:15
Java NIO (New IO) is an alternative IO API for Java (from Java 1.4), meaning alternative to the standard Java IO API's. Java NIO offers a different way of working with IO than the standard IO API's.
Java NIO: Channels and Buffers
In the standard IO API you work with byte streams and character streams. In NIO you work with channels and buffers. Data is always read from a channel into a buffer, or written from a buffer to a channel.Java NIO: Asynchronous IO
Java NIO enables you to do asynchronous IO. For instance, a thread can ask a channel to read data into a buffer. While the channel reads data into the buffer, the thread can do something else. Once data is read into the buffer, the thread can then continue processing it. The same is true for writing data to channels.Java NIO: Selectors
Java NIO contains the concept of "selectors". A selector is an object that can monitor multiple channels for events (like: connection opened, data arrived etc.). Thus, a single thread can monitor multiple channels for data.Java NIO: Table of Contents
本处为Java NIO系列的目录索引:
- Java NIO Introduction
- Java NIO Overview
- Java NIO Channel
- Java NIO Buffer
- Java NIO Scatter / Gather
- Java NIO Channel to Channel Transfers
- Java NIO Selector
- Java NIO FileChannel
- Java NIO SocketChannel
- Java NIO ServerSocketChannel
- Java NIO DataGramChannel
- Java NIO Pipe
- Java NIO vs. IO
本文转自:http://tutorials.jenkov.com/java-nio/index.html
- Java NIO(1-Introduction)
- JAVA NIO Introduction
- Java NIO Introduction
- Java NIO Tutorial 1- Introduction
- Java NIO socket(network) program framework - Apache mina & JBoss netty (simple introduction)
- Java NIO: NIO概述
- Java NIO:NIO概述
- Java NIO:NIO概述
- Java NIO:NIO概述
- Java NIO:NIO概述
- Java NIO:NIO概述
- Java NIO:NIO概述
- Java NIO:NIO概述
- NIO--JAVA NIO 入门
- Java NIO:NIO概述
- Java NIO:NIO概述
- Java NIO:NIO概述
- Java NIO:NIO概述
- SQL Server 存储过程
- 10-HEVC的高层语法结构
- SpringMVC提交数组时不能超过256个值
- 了解“云计算”
- ABS(actionbarsherlock)
- Java NIO Introduction
- 高级语言对应CPU执行流程
- 11-NAL unit解码
- Access的密码以及如何连接有数据库密码的 Access
- LR中各种message区别
- 【iOS开发】---- iOS6 以上设置文本高度,行高
- 程序员浮躁?
- Win7下PostgreSQL 9.3.2的安装、编译libpqxxx 4.0.1工程、测试连接代码
- android MotionEvent中getX()和getRawX()的区别