java»ñÈ¡Ò³Ãæ±àÂë
http://babyjoycry.javaeye.com/blog/587527
1. import info.monitorenter.cpdetector.io.CodepageDetectorProxy;
2. import info.monitorenter.cpdetector.io.HTMLCodepageDetector;
3. import info.monitorenter.cpdetector.io.JChardetFacade;
4.
5. import java.io.BufferedReader;
6. import java.io.IOException;
7. import java.io.InputStreamReader;
8. import java.net.HttpURLConnection;
9. import java.net.URL;
10. import java.util.Iterator;
11. import java.util.List;
12. import java.util.Map;
13. import java.util.Set;
14.
15. public class WebEncoding {
16. private static CodepageDetectorProxy detector = CodepageDetectorProxy
17. .getInstance();
18. static {
19.
20. detector.add(new HTMLCodepageDetector(false));
21.
22. detector.add(JChardetFacade.getInstance());
23.
24. }
25. /** ²âÊÔÓÃÀý
26. * @param args
27. */
28. public static void main(String[] args) {
29. WebEncoding web=new WebEncoding();
30. try {
31. System.out.println(web.getCharset("http://www.pujia.com/"));
32. } catch (IOException e) {
33. // TODO Auto-generated catch block
34. e.printStackTrace();
35. }
36. }
37. /**
38. * @param strurl
39. * Ò³ÃæurlµØÖ·,ÐèÒªÒÔ http://¿ªÊ¼£¬Àý£ºhttp: //www.pujia.com
40. * @return
41. * @throws IOException
42. */
43. public String getCharset(String strurl) throws IOException {
44. // ¶¨ÒåURL¶ÔÏó
45. URL url = new URL(strurl);
46. // »ñÈ¡httpÁ¬½Ó¶ÔÏó
47. HttpURLConnection urlConnection = (HttpURLConnection) url
48. .openConnection();
49. ;
50. urlConnection.connect();
51. // ÍøÒ³±àÂ
Ïà¹ØÎĵµ£º
ListµÄÓ÷¨
List°üÀ¨List½Ó¿ÚÒÔ¼°List½Ó¿ÚµÄËùÓÐʵÏÖÀà¡£ÒòΪList½Ó¿ÚʵÏÖÁËCollection½Ó¿Ú£¬ËùÒÔList½Ó¿ÚÓµÓÐCollection½Ó¿ÚÌṩµÄËùÓг£Ó÷½·¨£¬ÓÖÒòΪListÊÇÁбíÀàÐÍ£¬ËùÒÔList½Ó¿Ú»¹ÌṩÁËһЩÊʺÏÓÚ×ÔÉíµÄ³£Ó÷½·¨£¬Èç±í1Ëùʾ¡£
±í1 List½Ó¿Ú¶¨ÒåµÄ³£Ó÷½·¨¼°¹¦ÄÜ
´Ó±í1¿ÉÒÔ¿´³ö£¬List½Ó¿ÚÌṩµÄÊʺÏÓÚ×ÔÉíµÄ ......
2010-05-18
Îå¡¢ÑéÖ¤XML
l ÊôÐÔÁËÌØÕ÷·½·¨
·½ ·¨
·µ»ØÀàÐÍ
²Î Êý
Óï ·¨
setProperty()
void
String propertyId,
Object value
parser.setProperty(“[Property URI]”,
”[Object parameter]”);
setFeature()
void
String feat ......
ÇáÁ¿¼¶×é¼þÊÇÓÃJAVA´úÂ뻳öÀ´µÄ,ÕâÑù¾ßÓÐÆ½Ì¨ÒÆÖ²ÐÔ¡£
¡¡¡¡ ÖØÁ¿¼¶×é¼þÊǵ÷ÓòÙ×÷ϵͳµÄº¯Êý»³öÀ´µÄ×é¼þ,±ÈÈçÖ÷´°Ìå¡£
¡¡¡¡ Ò»°ãÀ´Ëµ¾¡Á¿ÓÃÇáÁ¿¼¶µÄ×é¼þ,ÕâÑù¶Ô³ÌÐòµÄÒÆÖ²ÐԺܺã¬Ò»°ãjavax.swing°üÀïµÄ×é¼þ´ó²¿·ÖÊÇÇáÁ¿¼¶µÄjava.awtÀïÃæµÄÊÇÖØÁ¿¼¶µÄ¡£
¡¡¡¡ SwingÊÇÓÉ100%´¿JavaʵÏֵģ¬Swing×é¼þÊÇÓÃJavaʵÏÖ ......
2008 Äê 6 ÔÂ 24 ÈÕ
ÔÎĵØÖ·£º http://www.ibm.com/developerworks/cn/data/library/techarticles/dm-0806wangys/
±¾ÎĽéÉÜ IBM FileNet P8 4.0 Platform ÌṩµÄ Content Java API¡£Ê×ÏÈ¶Ô FileNet P8 Content Engine ºÍ API ½øÐиÅÒª½éÉÜ, ²¢ËµÃ÷ÁËһЩ»ù±¾¸ÅÄî£¬ËæºóÏêϸ½éÉÜÁË FileNet Content EngineÌṩµÄ»ùÓÚ EJB ......