×îÖØÒªµÄ Java EE ×î¼Ñʵ¼ù
ÔÎÄÇë¿´
http://www.ibm.com/developerworks/cn/websphere/techjournal/0701_botzum/0701_botzum.html
ºóÐøÎÒ»á¶ÔÏÂÃæÌáµ½µÄ19µã½øÐÐһЩÊʵ±µÄÅú×¢,ËãÊÇ×Ô¼ºµÄ¶ÁÊé±Ê¼Ç
ÒýÑÔ
ÔÚ¹ýÈ¥µÄ¼¸ºõÕûÕûÊ®ÄêÖУ¬ÈËÃDZàдÁ˺ܶàÓÐ¹Ø Java™ Platform, Enterprise Edition (Java EE) ×î¼Ñʵ¼ùµÄÄÚÈÝ¡£ÏÖÔÚÓÐÊ®¶à±¾Êé¼®ºÍÊýÒ԰ټƣ¨¿ÉÄܸü¶à£©µÄÎÄÕ£¬ÌṩÁ˹ØÓÚÓ¦¸ÃÈçºÎ±àд Java EE Ó¦ÓóÌÐòµÄ¼û½â¡£ÊÂʵÉÏ£¬Õâ·½ÃæµÄ²Î¿¼×ÊÁÏÈç´ËÖ®¶à£¬²¢ÇÒÕâЩ²Î¿¼×ÊÁÏÖ®¼äÍùÍù»¹´æÔÚ×ÅһЩì¶ÜµÄ½¨Ò飬ÒÔÖÁÓÚÔÚÕâЩ»ìÔÓµÄÄÚÈÝÖнøÐÐѧϰ±¾ÉíÒ²³ÉΪÁ˲ÉÓà Java EE µÄÕÏ°¡£Òò´Ë£¬ÎªÁ˸ø¸Õ½øÈëÕâ¸öÁìÓòµÄ¿Í»§ÌṩһЩ¼òµ¥µÄÖ¸µ¼£¬ÎÒÃÇ»ã±àÁËÕâ¸ö×îÖØÒªµÄ×î¼Ñʵ¼ùÁÐ±í£¬ÆäÖаüÀ¨ÎÒÃÇÈÏΪ×îÖØÒªºÍ×îÓÐЧµÄ Java EE ×î¼Ñʵ¼ù¡£Òź¶µÄÊÇ£¬ÎÒÃÇÎÞ·¨½öÔÚ 10 ´ó×î¼Ñʵ¼ùÖÐÃèÊöËùÓÐÐèÒª½éÉܵÄÄÚÈÝ¡£Òò´Ë£¬ÎªÁ˱ÜÃâÒÅ©¹Ø¼üµÄ×î¼Ñʵ¼ùºÍ×ðÖØ Java EE µÄ·¢Õ¹£¬ÎÒÃǵÄÁбíÖаüº¬ÁË“19 ´ó”¹Ø¼üµÄ Java EE ×î¼Ñʵ¼ù¡£
Ïà¹ØÎĵµ£º
×ÜÊÇÍü¼Çjava¶ÁдÎļþµÄ´úÂë¾ßÌåÔõôд£¬Ð´ÁËÒ»¸ö¼Ç¼ÈçÏÂ
String filename="mydict.txt";
File file=new File(filename);
//read file
if(file.exists())
{
try
{
BufferedReader br=new BufferedReader(new FileReader(file));
String temp=null;
while((temp=br.readLine())!=null) ......
Ò»£ºÀí½â¶àÏß³Ì
¶àÏß³ÌÊÇÕâÑùÒ»ÖÖ»úÖÆ£¬ËüÔÊÐíÔÚ³ÌÐòÖв¢·¢Ö´Ðжà¸öÖ¸ÁîÁ÷£¬Ã¿¸öÖ¸ÁîÁ÷¶¼³ÆΪһ¸öỊ̈߳¬±Ë´Ë¼ä»¥Ïà¶ÀÁ¢¡£
Ïß³ÌÓÖ³ÆΪÇáÁ¿¼¶½ø³Ì£¬ËüºÍ½ø³ÌÒ»ÑùÓµÓжÀÁ¢µÄÖ´ÐпØÖÆ£¬ÓɲÙ×÷ϵͳ¸ºÔðµ÷¶È£¬Çø±ðÔÚÓÚÏß³ÌûÓжÀÁ¢µÄ´æ´¢¿Õ¼ä£¬¶øÊǺÍËùÊô½ø³ÌÖеÄÆäËüÏ̹߳²ÏíÒ»¸ö´æ´¢¿Õ¼ä£¬ÕâʹµÃÏ̼߳äµÄͨÐÅÔ¶½Ï½ø³Ì¼òµ¥¡£
......
ÔÚJAVAÎļþÖлñÈ¡¸ÃÏîÄ¿µÄÏà¶Ô·¾¶
1.»ù±¾¸ÅÄîµÄÀí½â
¡¡¡¡¾ø¶Ô·¾¶£º¾ø¶Ô·¾¶¾ÍÊÇÄãµÄÖ÷Ò³ÉϵÄÎļþ»òĿ¼ÔÚÓ²ÅÌÉÏÕæÕýµÄ·¾¶£¬(URLºÍÎïÀí·¾¶)ÀýÈ磺
C:\xyz\test.txt ´ú±íÁËtest.txtÎļþµÄ¾ø¶Ô·¾¶¡£http://www.sun.com/index.htmÒ²´ú±íÁËÒ»¸ö
URL¾ø¶Ô·¾¶¡£
¡¡¡¡Ïà¶Ô·¾¶£ºÏà¶ÔÓëij¸ö»ù׼Ŀ¼µÄ·¾¶¡£°üº¬WebµÄ ......
¼ÇµÃÔÚcsdnµÄij¸öÌû×ÓÖÐÌáµ½¼ÆËã½×³ËµÄÌÖÂÛ£¬µ±Ê±ÓкܶàÈ˶¼Ìá³öÁË×Ô¼ºµÄËã·¨£¬Ã¿¸öÈ˶¼ÏëµÄºÜÖÜÈ«¡£
ÕâÁ½ÌìÕýºÃ×Ô¼º¿´µ½ÁËÏà¹ØµÄÎÄÕ£¬ÄÇô×ܽáÕûÀíһϣ¬ÒÔ¹©´ó¼Ò²Î¿¼£¬Ò²ÎªÁË×Ô¼ºµÄ֪ʶ×ܽᡣ
ÔÚÊýѧÖУ¬Ö»ÓзǸºÕûÊý²ÅÓн׳ËÔËË㣬Òâ˼¾ÍÊÇ˵¸¡µãÊý¡¢¸ºÕûÊý¶¼²»ÄܽøÐмÆË㣬ÄÇôÎÒÃÇÔÚ¿¼ÂǼÆËãʱ£¬Ð¡ÓÚ0µÄÊý×ÖÎÒÃÇÊDz ......