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

JAVA Ö®"Ïß³Ì"


1¡¢½ø³ÌÓëỊ̈߳º
     ¡¶1¡·Ê²Ã´Êǽø³Ì£ºÊÇÖ¸ÔËÐÐÖеÄÓ¦ÓóÌÐò£¬Ã¿Ò»¸ö½ø³Ì¶¼ÓÐ×Ô¼º¶ÀÁ¢µÄÄÚ´æ¿Õ¼ä£¬
          Ò»¸öÓ¦ÓóÌÐò¿ÉÒÔͬʱÆô¶¯¶à¸ö½ø³Ì£¬(¾²Ì¬)±ÈÈ磨IE£¬JVM£©
     ¡¶2¡·Ê²Ã´ÊÇỊ̈߳ºÊÇÖ¸½ø³ÌÖеÄÒ»¸öÖ´ÐÐÁ÷³Ì£¬ÓÐʱÓгÆ֮ΪִÐÐÇé¾°£¬
          Ò»¸ö½ø³ÌÓжà¸öÏß³Ì×é³É(¶¯Ì¬)
     ¡¶3¡·½ø³ÌÓëÏ̵߳ÄÖ÷ÒªÇø±ð£º
          ÿ¸ö½ø³Ì¶¼ÐèÒª²Ù×÷ϵͳΪÆä·ÖÅä¶ÀÁ¢µÄÄÚ´æµØÖ·¿Õ¼ä£¬
          ¶øͬһ½ø³ÌÖеÄËùÓÐÏß³ÌÔÚͬһ¿éµØÖ·¿Õ¼äÖй¤×÷£¬
          ÕâЩÏ߳̿ÉÒÔ¹²Ïíͬ Ò»¿éÄÚ´æºÍϵͳ×ÊÔ´
2¡¢Ï̵߳Ĵ´½¨(Á½ÖÖ·½Ê½)£º
     ¡¶1¡·¼Ì³ÐThreadÀࣨһ°ãÔÚ²»¼Ì³ÐÆäËûÀàµÄÇé¿öÏ£©
     ¡¶2¡·ÊµÏÖRunnable½Ó¿Ú£¨Ò»°ãÔڼ̳ÐÆäËûÀàµÄÇé¿öÏ£©
    
3¡¢Ï̴߳´½¨µÄ²½Öè:
     ¡¶1¡·µÚÒ»ÖÖ
            (1)×Ô¶¨ÒåÏß³ÌÀà¼Ì³ÐThreadÀࣻ
            (2)¸²¸ÇThreadÀàÖеÄrun()·½·¨£»
            (3)´´½¨¸ÃÏß³ÌÀà¶ÔÏó£»
            (4)µ÷ÓøÃÏß³ÌÀà¶ÔÏóÖеÄstart()·½·¨Æô¶¯Ï̡߳£
     ¡¶2¡·µÚ¶þÖÖ
            (1)×Ô¶¨ÒåÏß³ÌÀàʵÏÖRunnable½Ó¿Ú£»
            (2)¸²¸ÇRunnable½Ó¿ÚÖеÄrun()·½·¨£»
            (3)´´½¨¸ÃÏß³ÌÀà¶ÔÏó£»
            (4)´´½¨Thread¶ÔÏ󣬹¹Ôì²ÎÊýΪ¸ÃÏß³ÌÀà¶ÔÏó£»
            (5)µ÷ÓÃThread¶ÔÏóÖÐ


Ïà¹ØÎĵµ£º

android ±àÒëÎÊÌâ java ºÍ javac °æ±¾²»¶Ô

ÔÚ±àÒëandroid code ³öÏÖ°æ±¾²»¶ÔµÄÎÊÌ⣺
ÃèÊöÈçÏ£º
You are attempting to build with the incorrect version
of java.
Your version is: java version "1.6.0_17".
The correct version is: 1.5.
Please follow the machine setup instructions at
http://source.android.com/download
ÍøÉÏÓÐÈËÌṩ½â¾ö·½·¨ÈçÏ ......

JavaÖÐStringµÄÓ÷¨×ܽá

 ¹¹Ôì·½·¨£º
String()
          ³õʼ»¯Ò»¸öд´½¨µÄ String ¶ÔÏó£¬Ëü±íʾһ¸ö¿Õ×Ö·ûÐòÁС£
String(byte[] bytes)
          ¹¹ÔìÒ»¸öÐ嵀 String£¬·½·¨ÊÇʹÓÃƽ̨µÄĬÈÏ×Ö·û¼¯½âÂë×Ö½ÚµÄÖ¸¶¨Êý×é¡£
String(byte ......

javaµ÷ÓÃÍⲿ³ÌÐò ±Øɱ ·¾¶¿Õ¸ñûÓÐÎÊÌâ

javaµ÷ÓÃÍⲿ³ÌÐò ±Øɱ ·¾¶¿Õ¸ñûÓÐÎÊÌâ      
Runtime rt = Runtime.getRuntime();
srcFile.getName();
try {
String cmd[]={"cmd","/c",srcFile.getAbsolutePath()};
rt.exec(cmd);
} catch (IOException e1) {
// TODO Auto-genera ......

PoC TBCPÏûÏ¢½âÎöºÍ¹¹ÔìµÄJAVAʵÏÖ

TBCPMessageFactory.java
/**
* ÎļþÃû: TBCPMessageFactory.java
*/
package tbcpstack;
import java.text.MessageFormat;
import org.apache.log4j.Logger;
import TBCPException;
/**
*
* TODO TBCPÏûÏ¢¹¹½¨¹¤³§
*/
public class TBCPMessageFactory {
/**
* Logger for this class
......

Java¶ÁÎļþдÎļþ²Ù×÷

  ÕâÀJavaµÄ¶ÁÎļþºÍдÎļþ¶¼ÊÇ»ùÓÚ×Ö·ûÁ÷µÄ£¬Ö÷ÒªÓõ½ÏÂÃæµÄ¼¸¸öÀࣺ
1¡¢FileReader----¶ÁÈ¡×Ö·ûÁ÷
2¡¢FileWriter----дÈë×Ö·ûÁ÷
3¡¢BufferedReader----»º³åÖ¸¶¨ÎļþµÄÊäÈë
¸ÃÀàµÄ·½·¨ÓУº
void close() 
        ¹Ø±Õ¸ÃÁ÷¡£
 void mark(int readAhead ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ