2017年3月21日

Java NIO (16) AsynchronousFileChannel

摘要: Java NIO AsynchronousFileChannel In Java 7 the AsynchronousFileChannel was added to Java NIO. The AsynchronousFileChannel makes it possible to read da 阅读全文

posted @ 2017-03-21 16:55 水桶畅畅 阅读(456) 评论(0) 推荐(0)

Java NIO (15) Files

摘要: Java NIO Files The Java NIO Files class (java.nio.file.Files) provides several methods for manipulating files in the file system. This Java NIO Files  阅读全文

posted @ 2017-03-21 16:48 水桶畅畅 阅读(207) 评论(0) 推荐(0)

Java NIO (14) Path

摘要: Java NIO Path The Java Path interface is part of the Java NIO 2 update which Java NIO received in Java 6 and Java 7. The Java Path interface was added 阅读全文

posted @ 2017-03-21 16:33 水桶畅畅 阅读(188) 评论(0) 推荐(0)

Java NIO (13) NIO vs. IO

摘要: Java NIO vs. IO When studying both the Java NIO and IO API's, a question quickly pops into mind: When should I use IO and when should I use NIO? In th 阅读全文

posted @ 2017-03-21 15:58 水桶畅畅 阅读(139) 评论(0) 推荐(0)

Java NIO (12) Pipe

摘要: Java NIO Pipe A Java NIO Pipe is a one-way data connection between two threads. A Pipe has a source channel and a sink channel. You write data to the 阅读全文

posted @ 2017-03-21 15:37 水桶畅畅 阅读(129) 评论(0) 推荐(0)

Java NIO (11) DatagramChannel

摘要: Java NIO DatagramChannel A Java NIO DatagramChannel is a channel that can send and receive UDP packets. Since UDP is a connection-less network protoco 阅读全文

posted @ 2017-03-21 15:24 水桶畅畅 阅读(155) 评论(0) 推荐(0)

Java NIO (10) Non-blocking Server

摘要: Java NIO: Non-blocking Server Even if you understand how the Java NIO non-blocking features work (Selector, Channel, Buffer etc.), designing a non-blo 阅读全文

posted @ 2017-03-21 14:15 水桶畅畅 阅读(225) 评论(0) 推荐(0)

Java NIO (9) ServerSocketChannel

摘要: Java NIO ServerSocketChannel A Java NIO ServerSocketChannel is a channel that can listen for incoming TCP connections, just like a ServerSocket in sta 阅读全文

posted @ 2017-03-21 13:52 水桶畅畅 阅读(127) 评论(0) 推荐(0)

Java NIO (8) SocketChannel

摘要: Java NIO SocketChannel A Java NIO SocketChannel is a channel that is connected to a TCP network socket. It is Java NIO's equivalent of Java Networking 阅读全文

posted @ 2017-03-21 13:43 水桶畅畅 阅读(198) 评论(0) 推荐(0)

Java NIO (7) FileChannel

摘要: Java NIO FileChannel A Java NIO FileChannel is a channel that is connected to a file. Using a file channel you can read data from a file, and write da 阅读全文

posted @ 2017-03-21 12:15 水桶畅畅 阅读(188) 评论(0) 推荐(0)

Java NIO (6) Selector

摘要: Java NIO Selector A Selector is a Java NIO component which can examine one or more NIO Channel's, and determine which channels are ready for e.g. read 阅读全文

posted @ 2017-03-21 11:36 水桶畅畅 阅读(185) 评论(0) 推荐(0)

Java NIO (5) Channel to Channel Transfers

摘要: Java NIO Channel to Channel Transfers In Java NIO you can transfer data directly from one channel to another, if one of the channels is a FileChannel. 阅读全文

posted @ 2017-03-21 11:13 水桶畅畅 阅读(155) 评论(0) 推荐(0)

Java NIO (4) Scatter / Gather

摘要: Java NIO Scatter / Gather Java NIO comes with built-in scatter / gather support. Scatter / gather are concepts used in reading from, and writing to ch 阅读全文

posted @ 2017-03-21 11:06 水桶畅畅 阅读(107) 评论(0) 推荐(0)

导航