Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ʹÓà Java ¶Ô Linux ÏÂÎļþ±àÂë¸ñʽ½øÐÐÅúÁ¿×ª»»

ʹÓà Java ¶Ô Linux ÏÂÎļþ±àÂë¸ñʽ½øÐÐÅúÁ¿×ª»»
        ²âÊÔʹÓÃ˵Ã÷£º
        1¡£½« ×Ö·û¼¯±àÂë¸ñʽΪ GB2312 µÄÎļþ test0.java£¬test1.java£¬test2.java ·ÅÔÚ /home/defonds/tmp/test Ŀ¼Ï£¨test0.java£¬test1.java£¬test2.java ×÷Õß¿ÉÒÔ×ÔÐÐËæÒâ´´½¨¡£ÈçºÎ²é¿´ test0.java µÄ×Ö·û¼¯±àÂë¸ñʽ£¿´ò¿ª test0.java £¬Îļþ -> Áí´æÎª£¬µ¯³öµÄ¶Ô»°¿òÀïµÄ“×Ö·û¼¯±àÂ딼´µ±Ç°ÎļþµÄ×Ö·û¼¯±àÂë¸ñʽ¡££©¡£
        2¡£Ð½¨Ò»Ä¿Â¼ /home/defonds/tmp/test2£¨Ò²¿ÉÒÔ²»½¨£¬³ÌÐò¿ÉÒÔ×Ô¶¯Éú³É£©¡£ÔËÐÐ EncodeConverter.java¡£
        3¡£´ò¿ª /home/defonds/tmp/test2 Îļþ¼Ð£¬·¢ÏÖÓÐÐÂÎļþ test0.java£¬test1.java£¬test2.java Éú³É£¬²é¿´Æä±àÂë¸ñʽ£¬ÊÇΪ UTF-8£¬Ö¤Ã÷תÂë³É¹¦¡£
        4¡£Ê¹Óñ¾¹¤¾ß¿ÉÒÔ¶Ô Linux ÏÂÎļþµÄ×Ö·û¼¯±àÂë¸ñʽ½øÐÐÅúÁ¿×ª»»¡£Ö»ÐèÊʵ±ÅäÖÃһϣ¬¿ÉÒÔÅúÁ¿´¦Àí¸÷ÖÖÎļþ¸ñʽµÄÎļþ£¬Èç *.txt£¬*.java µÈµÈ¡£
        ʹÓà Java ¶Ô Linux ÏÂÎļþ±àÂë¸ñʽ½øÐÐÅúÁ¿×ª»»Ô´´úÂëÈçÏ£º
package demo;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileFilter;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
/**
* ÏîÄ¿Ãû³Æ£ºTest64.0-ec
* ÀàÃû³Æ£ºEncodeConverter
* ÀàÃèÊö£ºLinux ÏÂÅúÁ¿×ª»»Îļþ±àÂë¸ñʽ
* ´´½¨ÈË£ºDefonds
* ´´½¨Ê±¼ä£º2009-12-2 ÏÂÎç03:37:15
* ÐÞ¸ÄÈË£ºDefonds
* ÐÞ¸Äʱ¼ä£º2009-12-2 ÏÂÎç03:37:15
*/
public class EncodeConverter
{
// Ô­ÎļþĿ¼
private static String srcDir = "//home//defonds//tmp//test//";
// ת»»ºóµÄ´æ·ÅĿ¼
private static String desDir = "//home//defonds//tmp//test2//";
// Ô´Îļþ±àÂë
private static String srcEncode = "gb2312";
// Êä³öÎļþ±àÂë
private static String desEnc


Ïà¹ØÎĵµ£º

Java NIO APIÏê½â

 
Java NIO APIÏê½â
ÔÚJDK
1.4ÒÔǰ£¬JavaµÄIO²Ù×÷¼¯ÖÐÔÚjava.ioÕâ¸ö°üÖУ¬ÊÇ»ùÓÚÁ÷µÄ×èÈû£¨blocking£©API¡£¶ÔÓÚ´ó¶àÊýÓ¦ÓÃÀ´Ëµ£¬ÕâÑùµÄAPIʹÓúܷ½
±ã£¬È»¶ø£¬Ò»Ð©¶ÔÐÔÄÜÒªÇó½Ï¸ßµÄÓ¦Óã¬ÓÈÆäÊÇ·þÎñ¶ËÓ¦Óã¬ÍùÍùÐèÒªÒ»¸ö¸üΪÓÐЧµÄ·½Ê½À´´¦ÀíIO¡£´ÓJDK 1.4Æð£¬NIO
API×÷Ϊһ¸ö»ùÓÚ»º³åÇø£¬²¢ÄÜÌṩ·Ç×èÈû(non-blo ......

LinuxÉ豸ģÐÍÖ®input×ÓϵͳÏê½â

Ò»£ºÇ°ÑÔ
×î½üÔÚÑо¿androidµÄsensor driver£¬Ö÷ÒªÊÇE-compass£¬ÆäÖÐÓõ½ÁËLinux input×Óϵͳ.ÔÚÍøÉÏÒ²¿´Á˺ܶàÕâ·½ÃæµÄ×ÊÁÏ£¬¸Ð¾õ»¹ÊÇÕâÆª·ÖÎöµÄ±È½ÏϸÖÂ͸³¹£¬Òò´Ë×ªÔØÒ»ÏÂÒÔ±ã×Ô¼ºÑ§Ï°£¬Í¬Ê±ºÍ´ó¼Ò·ÖÏí£¡
£¨ÕâÆª²©¿ÍÖ÷ÒªÊÇÒÔ¼üÅÌÇý¶¯ÎªÀýµÄ£¬²»¹ý½²½âµÄÊÇLinux Input Subsystem£¬¿ÉÒÔ×ÐϸµÄÑо¿Ò»Ï£¡£©
¼üÅÌÇý¶¯½«¼ì ......

ʹÓÃScreen´´½¨ÐéÄâÖն˱ÜÃâLinuxÔ¶³Ì¶ÏÏß

ά»¤LinuxµÄssh¹¤¾ßÔÚʹÓÃÖУ¬Ò»µ©Óöµ½ÍøÂçÖжϣ¬Ôòµ±Ç°µÄshell¾Í»á×Ô¶¯¹Ø±Õ
µ±Ç°µÄ¹¤×÷½ø¶È¾Í»á¶ªÊ§£¬Õâ¶ÔÓÚÔ¶³ÌÉý¼¶µÈ±È½ÏºÄ·Ñʱ¼äµÄ¹¤×÷ÊǷdz£²»ÀûµÄ
¶ÔÓÚÔ¶³Ìµ÷ÊÊ´úÂëÒ²ÊǺܲ»¿É¿¿²»°²È«µÄ
Ϊ´Ë£¬¿ÉÒÔʹÓÃscreenÕâ¸ö¹¤¾ßÀ´½â¾öÕâ¸öÎÊÌâ¡£
¶ÔÓÚ×îС»¯µÄlinux£¬Í¨³£screenÊDz»°üº¬ÔÚϵͳÄڵġ£
ÐèÒª²éÕÒ²Ù×÷ϵͳµÄ°² ......

linux¶¯Ì¬Á´½Ó¿âµÄ´´½¨ÓëʹÓÃ

ʹÓÃlinux¶¯Ì¬Á´½Ó¿â£º
     ÔÚUnixÉÏ´æÔÚÁ½Öֿ⣺¶¯Ì¬¿â£¨.so£©ºÍ¾²Ì¬¿â£¨.a£©£¬²ÉÓö¯Ì¬¿â£¨¹²Ïí¶ÔÏ󣩼¼Êõ¿ÉÒÔ·½±ã³ÌÐò¼ä¹²Ïí£¬½ÚÊ¡³ÌÐòÕ¼Óпռ䣬Ôö¼Ó³ÌÐòµÄ¿ÉÀ©Õ¹ÐÔºÍÁé»îÐÔ¡£
    ²Ù×÷¶¯Ì¬¿âµÄº¯ÊýÔÚdlfcn.hÎļþÖж¨Ò壬ËùÒÔÒªÔÚʹÓö¯Ì¬¿âʱinclude <dlfcn.h>
 &n ......

[Linux] ¹ØÓÚ Ext4 HowTo

Ò»Ö±ÔÚ¹Ø×¢´óÐÍÎļþ´æ´¢ÏµÍ³µÄ×îнü¿ö£¬½üÈÕÓÖµÃÖªÒ»¸öÖØ°õÏûÏ¢£ºLinux kernel ×Ô 2.6.28 ¿ªÊ¼Õýʽ֧³ÖеÄÎļþϵͳ Ext4¡£ÕæÊÇÆÚ´ýÒѾÃÁ˰¡~Ext4 ÊÇ Ext3 µÄ¸Ä½ø°æ£¬ÐÞ¸ÄÁË Ext3 Öв¿·ÖÖØÒªµÄÊý¾Ý½á¹¹£¬¶ø²»½ö½öÏñ Ext3 ¶Ô Ext2 ÄÇÑù£¬Ö»ÊÇÔö¼ÓÁËÒ»¸öÈÕÖ¾¹¦ÄܶøÒÑ¡£Ext4 ¿ÉÒÔÌṩ¸ü¼ÑµÄÐÔÄܺͿɿ¿ÐÔ£¬»¹ÓиüΪ·á¸»µÄ¹¦ÄÜ£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ