Java°ü³ö´í
´´½¨ÁËÁ½¸öÀ࣬µÚÒ»¸öÀà²úÉúÒ»¸ö°ü£¬µ÷ÊÔÄÜÔËÐУ»µÚ¶þ¸öÀàµ÷ÓõÚÒ»¸öÀà²úÉúµÄ°ü£¬µ«ÔËÐгö´í£¬Çë¸ßÊÖÖ¸µãÒ»ÏÂ
OutputSessionInfo.java
package ch05;
import java.io.*;
import javax.servlet.http.*;
import java.util.Date;
public class OutputSessionInfo
{
public static void printSessionInfo(PrintWriter out,HttpSession session)
{
out.println(" <table>");
out.println(" <tr>");
out.println(" <td>»á»°µÄ״̬ </td>");
if(session.isNew())
{
out.println(" <td>еĻỰ </td>");
}
else
{
out.println(" <td>¾ÉµÄ»á»° </td>");
}
out.println(" </tr>");
out.println(" <tr>");
out.println(" <td>»á»°ID£º </td>");
out.println(" <td>"+session.getId()+" </td>");
out.println(" </tr
Ïà¹ØÎÊ´ð£º
ÎÒÏë×ö¹»¹ºÎï³µÓÃsession µ«ÊDz»ÖªµÀÔõô»ñÈ¡¹ºÂòÊýÁ¿ ËÓоßÌåµÄ´úÂëÂð Ï£ÍûÄܸîÉá
ÏÂÃæÊǹºÎï³µµÄºËÐÄ´úÂë
ÓÐÁËÕâ¸ö ¾ÍÓ¦¸ÃÄܹ»×ö³öÀ´°É
Java code:
public void doPost(HttpServletRequest reque ......
²éAPI£¬¿´µ½FeatrueFactoryÓÐÕâ¸ö·½·¨
public Feature createPolyLine(double[][] thePoints,
R ......
ÎÒÏëʹÓÃLuceneµÄ´úÂ룬·¢ÏÖÒªimportÒ»ÅúÎļþ£º
============
import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.document.Document;
¡¡¡¡¡¡
===== ......
Java code:
import java.awt.image.*;
import java.awt.*;
import java.io.*;
import javax.imageio.*;
public class ImageByte {
/**
* ת»»ImageÊý¾ÝΪbyteÊý×é
*
* @param image ......
Âé·³´ó¼Ò±êÃ÷ÏÂÏÂÃæµÄ½Ó¿ÚÊÇ£ºÓÐÐòΨһ²»Öظ´µÄ»¹ÊÇÎÞÐòΨһ¿ÉÖظ´µÄÄØ
È磺Set£º´æ´¢¶ÔÏóÔªËØ£¬²»ÐèÒª±£³ÖÌض¨Ë³Ðò£¬²»Öظ´
List£º
Map£º
Vector£º
HashSet£ ......