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
Ïà¹ØÎĵµ£º
Java´úÂë
long startTime=System.currentTimeMillis(); //»ñÈ¡¿ªÊ¼Ê±¼ä
doSomeThing(); //²âÊԵĴúÂë¶Î
long endTime=System.currentTimeMillis(); //»ñÈ¡½áÊøÊ±¼ä
System.out.println("³ÌÐòÔËÐÐʱ¼ä£º "+(endTime-startTime)+"ms");
µÚ¶þÖÖÊÇÒÔÄÉÃëΪ ......
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 ......
Ò»¡¢Ç°ÑÔ
±¾Îļٶ¨ÄãÓÐÒ»¶¨µÄJ2EE¿ª·¢¾Ñ飬Õâ¸ö½Ì³ÌûÓйý¶àµÄÉæ¼°»ù´¡ÖªÊ¶ºÍ¿ª·¢Ï¸½Ú¡£Èç¹ûÔÚÔĶÁ¹ý³Ì³öÓÐʲôÎÊÌ⣬»¹ÇëÓëÎÒÁªÏµ½»Á÷¡£
Èç¹ûʹÓÃGOOGLE¡¢BAIDUµÈËÑË÷¹¤¾ß£¬ËÑË÷WebServiceµÄÏà¹ØÖªÊ¶£¬¿ÉÒԲ鵽N¶àµÄÍøÒ³£¬ÎÒ¾ÍÊÇͨ¹ýÕâÐ©ÍøÒ³µÄѧϰ£¬Öð½¥ÕÆÎ ......
ÏÂÃæÕâ¸ö¿ÉÁ¯µÄС³ÌÐò²¢²»ÄܺܺõØ×ö³öÆä×Ô¼ºµÄ¾ö¶¨¡£ËüµÄdecision·½·¨½«·µ»Øtrue£¬µ«ÊÇËü»¹·µ»ØÁËfalse¡£ÄÇô£¬Ëüµ½µ×´òÓ¡µÄÊÇÊ²Ã´ÄØ£¿ÉõÖÁ£¬ËüÊǺϷ¨µÄÂð£¿
public class Indecisive {
public static void main(String[] args) {
System.out.println(decision());
}
static boolean decision( ......
ÏÂÃæµÄ·½·¨½«Ò»¸öÎļþ¿½±´µ½ÁíÒ»¸öÎļþ£¬²¢ÇÒ±»Éè¼ÆÎªÒª¹Ø±ÕËüËù´´½¨µÄÿһ¸öÁ÷£¬¼´Ê¹ËüÅöµ½I/O´íÎóÒ²ÒªÈç´Ë¡£Òź¶µÄÊÇ£¬Ëü²¢·Ç×ÜÊÇÄܹ»×öµ½ÕâÒ»µã¡£ÎªÊ²Ã´²»ÄÜÄØ£¬ÄãÈçºÎ²ÅÄܶ©ÕýËüÄØ£¿
static void copy(String src, String dest) throws IOException {
InputStream in = null;
OutputStream out = n ......