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

javaÐòÁл¯

ÐòÁл¯¾ÍÊǰѶÔÏóת»»ÎªÁ÷ÒÔ´æ´¢µ½Îļþ»ò´«Êä¸øÁíÒ»¸ö³ÌÐò£»·´ÐòÁл¯¾ÍÊÇ°ÑÁ÷ת»»Îª¶ÔÏó¡£JAVAµÄÐòÁл¯£¬ÊÇͨ¹ýÊÇjava.io.Serializable½Ó¿ÚÀ´ÊµÏֵġ£¸Ã½Ó¿Ú²»°üº¬Èκη½·¨£¬½ö±ê¼ÇÊÇ·ñ¿É±»ÐòÁл¯¡£¿ÉÐòÁл¯µÄÀ࣬Æä³ÉÔ±Ò²±ØÐëÊÇ¿ÉÐòÁл¯µÄ£¨Èç¹ûÓгÉÔ±²»Äܱ»ÐòÁл¯£¬Ôò±ØÐ뽫¸Ã±äÁ¿±ê¼ÇΪ£ºtransient£¨Ë²Ì¬£©£¬ÐòÁл¯Ê±£¬»áºöÂÔ¸Ã×ֶΣ©¡£¹ØÓÚ³¬ÀàµÄÐòÁл¯£ºÈç¹û³¬ÀàÒ²ÊÇ¿ÉÐòÁл¯µÄ£¬ÄÇôJAVA½«ÔÚÊä³öÁ÷Öб£´æÀàºÍ³¬ÀࣻÈç¹û³¬À಻ÊÇÀàÐòÁл¯µÄ£¬Ôò±ØÐëÌṩĬÈÏÎÞ²ÎÊý¹¹Ô캯Êý£¨ÔÚÐòÁл¯Æڼ䣬²»»á±£´æ³¬Àࣻ·´ÐòÁл¯£¬Ê¹ÓÃĬÈϹ¹Ô캯Êý»Ö¸´³¬Àࣩ£¬·ñÔòÐòÁл¯»á³ö´í¡£
ËäÈ»¿ÉÒÔͨ¹ýʵÏÖjava.io.Externalizable½Ó¿ÚÀ´ÊÖ¹¤±àдÐòÁл¯ÀࣨËٶȸü¿ì£©£¬µ«²¢²»ÍƼöÕâô×ö£¬ÒòΪ³öBUGµÄ¿ÉÄÜÐÔ¸ü´ó¡£
¹ØÓÚÐòÁл¯µÄÏÞÖÆ£º
²¢²»ÊÇÿ¸ö¶ÔÏ󶼿ÉÐòÁл¯¡£¶ÔÍⲿ×ÊÔ´µÄÒýÓã¨ÈçÊý¾Ý¿âÁ¬½Ó»òÌ×½Ó×Ö£©¾Í²»ÄÜÐòÁл¯
ÎÄÕ³ö´¦£ºDIY²¿Âä(http://www.diybl.com/course/3_program/java/javajs/20090303/156889.html)
Object serializationµÄ¶¨Ò壺
Object serialization ÔÊÐíÄ㽫ʵÏÖÁËSerializable½Ó¿ÚµÄ¶ÔÏóת»»Îª×Ö½ÚÐòÁУ¬ÕâЩ×Ö½ÚÐòÁпÉÒÔ±»ÍêÈ«´æ´¢ÒÔ±¸ÒÔºóÖØÐÂÉú³ÉÔ­À´µÄ¶ÔÏó¡£
serialization²»µ«¿ÉÒÔÔÚ±¾»ú×ö£¬¶øÇÒ¿ÉÒÔ¾­ÓÉÍøÂç²Ù×÷£¨¾ÍÊÇèС˵µÄRMI£©¡£Õâ¸öºÃ´¦ÊǺܴóµÄ----ÒòΪËü×Ô¶¯ÆÁ±ÎÁ˲Ù×÷ϵͳµÄ²îÒ죬×Ö½Ú˳Ðò£¨ÓÃUnixϵÄc¿ª·¢¹ýÍøÂç±à³ÌµÄÈËÓ¦¸ÃÖªµÀÕâ¸ö¸ÅÄÎÒ¾ÍÈÝÒ×ÔÚÕâÉÏÃæ·¸´í£©µÈ¡£±ÈÈ磬ÔÚWindowƽ̨Éú³ÉÒ»¸ö¶ÔÏó²¢ÐòÁл¯Ö®£¬È»ºóͨ¹ýÍøÂç´«µ½Ò»Ì¨Unix»úÆ÷ÉÏ£¬È»ºó¿ÉÒÔÔÚÕą̂Unix»úÆ÷ÉÏÕýÈ·µØÖع¹Õâ¸ö¶ÔÏó¡£
Object serializationÖ÷ÒªÓÃÀ´Ö§³Ö2ÖÖÖ÷ÒªµÄÌØÐÔ£º
1¡£JavaµÄRMI(remote method invocation).RMIÔÊÐíÏóÔÚ±¾»úÉÏÒ»Ñù²Ù×÷Ô¶³Ì»úÆ÷ÉϵĶÔÏó¡£µ±·¢ËÍÏûÏ¢¸øÔ¶³Ì¶ÔÏóʱ£¬¾ÍÐèÒªÓõ½serializaiton»úÖÆÀ´·¢ËͲÎÊýºÍ½ÓÊÕ·µ»ØÖ±¡£
2¡£JavaµÄJavaBeans. BeanµÄ״̬ÐÅϢͨ³£ÊÇÔÚÉè¼ÆʱÅäÖõġ£BeanµÄ״̬ÐÅÏ¢±ØÐë±»´æÆðÀ´£¬ÒԱ㵱³ÌÐòÔËÐÐʱÄָܻ´ÕâЩ״̬ÐÅÏ¢¡£ÕâÒ²ÐèÒªserializaiton»úÖÆ¡£
ÎÒ¾õµÃÄãÃÇ˵µÄÓ¦¸ÃÊÇÓ¢ÎÄÀïµÄpersistence.µ«ÊÇJavaÓïÑÔÀïÏÖÔÚÖ»Ö§³Ölightweight persistence,¾ÍÊÇÇáÁ¿¼¶³Ö¾Ã»¯£¬ÕâÊÇͨ¹ýserialization»úÖÆÀ´ÊµÏֵġ£
persistenceÊÇÖ¸Ò»¸ö¶ÔÏóµÄÉúÃüÖÜÆÚ²»ÓɳÌÐòÊÇ·ñÖ´ÐÐÀ´¾ö¶¨£¬¼´Ê¹ÊÇÔÚ³ÌÐòÖÕֹʱÕâ¸ö¶ÔÏóÒ²´æÔÚ¡£Ëü°ÑÒ»¸öserializableµÄ¶ÔÏóдµ½´ÅÅÌ£¨±¾»ú»òÆäËû»úÆ÷ÉϵķÇRAM´æ´¢Æ÷£©£¬²¢ÔÚ³


Ïà¹ØÎĵµ£º

JavaµÄXMLÎļþ²Ù×÷Ö®DOMÈëÃÅƪ £¨2£©

ÏÂÃæµÄÄÚÈÝ£¬ÎÒÃǽ«¸ü¶àµÄ¹Ø×¢DOM£¬ÎªDOM×÷Ò»¸ö½ÏΪÏêϸµÄ½âÎö£¬Ê¹ÎÒÃÇʹÓÃÆðÀ´¸üΪµÃÐÄÓ¦ÊÖ¡£
DOMÏê½â
1£®»ù±¾µÄDOM¶ÔÏó
DOMµÄ»ù±¾¶ÔÏóÓÐ5¸ö£ºDocument£¬Node£¬NodeList£¬ElementºÍAttr¡£ÏÂÃæ¾ÍÕâЩ¶ÔÏóµÄ¹¦ÄܺÍʵÏֵķ½·¨×÷Ò»¸ö´óÖµĽéÉÜ¡£
Document¶ÔÏó´ú±íÁËÕû¸öXMLµÄÎĵµ£¬ËùÓÐÆäËüµÄNode£¬¶¼ÒÔÒ»¶¨µÄ˳Ðò°üº ......

ÔÚLinuxÉÏ°²×°JDK¼°ÉèÖÃJAVA»·¾³±äÁ¿


1. ÏÈ´ÓÍøÉÏÏÂÔØjdk(jdk-1_5_0_02-linux-i586.rpm) £¬ÍƼöSUNµÄ¹Ù·½ÍøÕ¾www.sun.com£¬ÏÂÔغó·ÅÔÚ/homeĿ¼ÖУ¬µ±È»ÆäËüµØ·½Ò²ÐС£
½øÈ밲װĿ¼
#cd /home
#cp jdk-1_5_0_02-linux-i586.rpm /usr/local
#cd /usr/local
¸øËùÓÐÓû§Ìí¼Ó¿ÉÖ´ÐеÄȨÏÞ
#chmod +x jdk-1_5_0_02-linux-i586.rpm.bin
#./jdk-1_5_0_02-lin ......

javaºÍ.net»¥Ïàµ÷ÓÃwebservice×¢ÒâÊÂÏî

×îºóÔÚÑо¿GWT,ÐèÒªÓõ½.net µÄwebservice,ÍøÉÏËÑÁ˵ã´úÂë,»ù±¾ÉÏÎÊÌâ¶à¶à.
JavaÒªµ÷ÓÃ.netµÄwebserviceÊÇÐèÒªÒ»¸öaxisµÄ°üµÄ. ÐèÒªÏÂÔØ,È»ºóÒýÓÃ.
ÒýÓõÄʱºò,ÐèҪעÒâһЩСÎÊÌâ.
Java ¶Ë
public String ServiceLogon(String user, String pwd) throws ServiceException  
    { &nb ......

java ´òÓ¡

²ÉÓÃUDPµÄͨѶ·½Ê½£¬µ÷ÓÃjava×Ô´øµÄawt´òÓ¡½Ó¿Ú
·þÎñÆ÷¶Ë´úÂë
Server£º
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.SocketException;
public class Server
{
private DatagramSocket server;

private DatagramPacket packet; ......

FlexµÄsocketÓëjavaʹÓÃamf3½øÐÐͨÐÅ

amf3,adobe´´Á¢µÄÊý¾Ý¸ñʽÓÉÓÚʹÓöþ½øÖÆ,ûÓÐÁËxmlµÈÈßÓàµÄ×Ö·ûÊý¾ÝÁ¿»áÉٺܶà!¶øÇҺܶà²âÊÔ±¨¸æ¾ù²â³öamf´«µÝЧ¹ûºÜ¸ß.
Õâ´ÎÊÇʹÓÃFlexµÄSocketÀàÓëjavaµÄ·þÎñ¶Ë½øÐÐͨÐÅ,
²½ÖèÊÇ:
¿Í»§¶ËÓÃsocketÀàÁ¬½Ójava·þÎñÆ÷,
ʹÓòéѯ×Ö·û´®½øÐÐÇëÇó,
java½«Êý¾Ý·âװΪhashmap,×îºó½«hashmapÓÃamfoutputstreamÊä³öÖÁflexµÄ¿Í» ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ