Java NIO 缓冲+断点下载
用JAVA实现缓冲多线程无阻塞读取远程文件
http://ajava.org/course/java/10688.html
使用FileChannel和ByteBuffer
http://www.java2s.com/CN/Code/Java/File-Input-Output/useFileChannelandByteBuffer.htm
java.nio.Buffer缓冲区基础
http://zcdxzsz.javaeye.com/blog/310917
Java NIO 应用 -- 使用内存映射文件实现进程间通信
http://www.blogjava.net/Unmi/archive/2010/03/19/315940.html
共享内存在Java中实现和应用
http://www.blogjava.net/Unmi/archive/2010/03/19/315889.html
相关文档:
The goal for this chapter is to introduce you to Java's native methods. If you are new to Java, you may not know what native methods are, and even if you are an experienced Java developer, you may not have had a reason to learn more about native methods. At the conclusion of this chapter you should ......
下面这个可怜的小程序并不能很好地做出其自己的决定。它的decision方法将返回true,但是它还返回了false。那么,它到底打印的是什么呢?甚至,它是合法的吗?
public class Indecisive {
public static void main(String[] args) {
System.out.println(decision());
}
static boolean decision( ......
本谜题中的程序所建模的系统,将尝试着从其环境中读取一个用户ID,如果这种尝试失败了,则缺省地认为它是一个来宾用户。该程序的作者将面对有一个静态域的初始化表达式可能会抛出异常的情况。因为Java不允许静态初始化操作抛出被检查异常,所以初始化必须包装在try-finally语句块中。那么,下面的程序会打印出什么呢?
pu ......
下面的程序在寻常的Hello world程序中添加了一段不寻常的曲折操作。那么,它将会打印出什么呢?
public class HelloGoodbye {
public static void main(String[] args) {
try {
System.out.println("Hello world");
System.exit(0);
} finally {
System.o ......
package com.zwc.www.test;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
public class OperateEnum {
//first emun
enum PeopleTypeOne{RED,YELLOW,BLACK};
//second emun
public enum PeopleTypeTwo{
RED("a","#111111"),
......