java URI URL ¸öÈËÀí½â¡£
URI ÊÇ×ÊÔ´±êʶ·û¡£¾ÍÊÇÏ൱ÓÚÒ»¸öÈ˵ļÒͥסַ¡£
URLºÍURIÀàËÆ¡£ÊÇ×ÊÔ´¶¨Î»µÄ¡£ ºÍURI²»Í¬µÄ¾ÍÊÇURLÌṩÁË»ñÈ¡¶«Î÷µÄ·½·¨¡£
java.io.InputStream l_urlStream;
// Ò²¿ÉÒÔ»»³Éuri,È»ºóµ÷ÓÃuri.toURL
java.net.URL l_url = new java.net.URL(
"http://www.google.cn");
java.net.HttpURLConnection l_connection = (java.net.HttpURLConnection) l_url
.openConnection();
System.out.println(l_connection.getContentType());
l_connection.connect();
l_urlStream = l_connection.getInputStream();
Ïà¹ØÎĵµ£º
½ñÌìÊÇдµÚһƪ´«ÖDz¥¿Í½Ì³ÌÈÕÖ¾£¬Ò²ÊÇÎÒ¿´
JavaScript
ÊÓƵµÄµÚÒ»Ìì¡£
ÏÈ˵ԵÓÉ°É¡£´óÈý»¹ÓÐÈý¸öÔ¾ÍÒª½áÊøÁË£¬¿ÉÎÒ»¹Ã»Óиоõµ½×Ô¼ºÄܹ»ÓÐ×ã¹»µÄÄÜÁ¦ÕÒµ½·ÝºÃ¹¤×÷£¬´óѧÆÚ¼äѧµ½µÄ¶¼ÊÇЩƤëºÍÀíÂÛ£¬ÎÒ²»Ïëµ½ÁËÕÒ¹¤×÷µÄʱºò£¬ÃæÊÔ¹ÙÎÊÎÒ»á
XXX
Âð£¿ÎÒ˵²»»á¡£Òò´ËÎÒÏëͨ¹ýÅàѵÔö¼Ó×Ô¼ºµÄ¾ºÕùÁ¦¡£ÎÒ±¨Á˱¾µØµÄÒ»¼Ò
I ......
8. µ±ÏµÍ³´¦ÀíÍê³Éºó£¬±¨±í±»ÏÔʾ³öÀ´¡£ÕâÊÇÒ»·ÝÉÌÆ·ÏúÊÛ±¨¸æ£¬ÏÔʾµÄÊÇÿÀàÉÌÆ·µÄ¼¾¶ÈÏúÊÛ¶îÒÔ¼°ÀÛ¼ÆÇé¿ö¡£½ÓÏÂÀ´£¬ÎÒÃdz¢ÊÔÓà Java
´´½¨Ò»¸öʼþÏìÓ¦´¦ÀíÀ࣬°Ñÿ¼¾¶ÈÏúÊÛ¶îÔÚ10ÍòÃÀÔªÒÔÉϵÄÊý¾ÝÓúìÉ«±êʾ³öÀ´¡£
´´½¨ Java Àà
°´ÕÕÈçϲ½Ö裬Óà Java ´´½¨°ÙÁ鱨±í£¨BIRT£©µÄʼþÏìÓ¦´¦Àí³ÌÐò¡£
......
JavaʹµÃ¸´ÔÓÓ¦ÓõĿª·¢±äµÃÏà¶Ô¼òµ¥£¬ºÁÎÞÒÉÎÊ£¬ËüµÄÕâÖÖÒ×ÓÃÐÔ¶ÔJavaµÄ´ó·¶Î§Á÷Ðй¦²»¿Éû¡£È»¶ø£¬ÕâÖÖÒ×ÓÃÐÔʵ¼ÊÉÏÊÇÒ»°ÑË«Èн£¡£Ò»¸öÉè¼ÆÁ¼ºÃµÄJava³ÌÐò£¬ÐÔÄܱíÏÖÍùÍù²»ÈçÒ»¸öͬÑùÉè¼ÆÁ¼ºÃµÄC++³ÌÐò¡£ÔÚJava³ÌÐòÖУ¬ÐÔÄÜÎÊÌâµÄ´ó²¿·ÖÔÒò²¢²»ÔÚÓÚJavaÓïÑÔ£¬¶øÊÇÔÚÓÚ³ÌÐò±¾Éí¡£Ñø³ÉºÃµÄ´úÂë±àдϰ¹ß·Ç³£ÖØÒª£¬±ÈÈçÕýÈ·µ ......
1£¬intÓëbytes ת»»
intת»»³Ébytes
public
static
final
byte
[]
int2bytes
(
int
value
)
{
return
new
byte
[]
{
(
byte
)(
value
>>>
24
),
(
byte
)(
value
>>>
16
),
......
ÉÏÒ»´Î£¬ÎÒÃÇÍê³ÉÁ˽çÃæµÄ×éÖ¯¡£½ÓÏÂÀ´ÎÒÃÇÍê³ÉÒµÎñÂß¼¡£
1£©ÈçºÎÍê³ÉÖÜΧÏàÁڵİ´Å¥±äÉ«¡£
·ÖÎö£ºÒòΪÎÒÃÇ×öÁËÒ»¸ö5*5µÄÊý×é¡£²¢ÇÒÊÂÏÈÎÒÃǸøÿ¸ö×Ô¶¨ÒåµÄbutton¼ÓÁËxºÍy×ø±ê
¾ÍÊÇΪÁ˸ü·½±ãµÄ¸øÏàÁڵİ´Å¥±äÉ«¡£
µ±ÎÒÃǵã»÷(2£¬2)°´Å¥Ê±£¬ÖÜΧµÄ 4¸ö°´Å¥»á±ä»¯¡£
µ±È»Ê×ÏÈÎÒÃÇÓ¦¸ÃÏȸøÿ¸ö°´Å¥Ôö¼Ó¼àÌýÆ÷¡£Î ......