Java IOÁ÷ѧϰ×ܽá
Ò»¡¢IOÁ÷µÄÈýÖÖ·ÖÀ෽ʽ
1.°´Á÷µÄ·½Ïò·ÖΪ£ºÊäÈëÁ÷ºÍÊä³öÁ÷
2.°´Á÷µÄÊý¾Ýµ¥Î»²»Í¬·ÖΪ£º×Ö½ÚÁ÷ºÍ×Ö·ûÁ÷
3.°´Á÷µÄ¹¦Äܲ»Í¬·ÖΪ£º½ÚµãÁ÷ºÍ´¦ÀíÁ÷
¶þ¡¢IOÁ÷µÄËÄ´ó³éÏóÀࣺ
×Ö·ûÁ÷£ºReader Writer
×Ö½ÚÁ÷£ºInputStream£¨¶ÁÊý¾Ý£© OutputStream£¨Ð´Êý¾Ý£©
Èý¡¢InputStreamµÄ»ù±¾·½·¨
int read£¨£© throws IOException ¶Áȡһ¸ö×Ö½ÚÒÔÕûÊýÐÎʽ·µ»Ø£¬Èç¹û·µ»Ø-1Òѵ½ÊäÈëÁ÷µÄĩβ
void close£¨£© throws IOException ¹Ø±ÕÁ÷ÊÍ·ÅÄÚ´æ×ÊÔ´
long skip£¨long n£© throws IOException Ìø¹ýn¸ö×Ö½Ú²»¶Á
ËÄ¡¢OutputStreamµÄ»ù±¾·½·¨
void write£¨int b£© throws IOException ÏòÊä³öÁ÷дÈëÒ»¸ö×Ö½ÚÊý¾Ý
void flush£¨£© throws IOException ½«Êä³öÁ÷Öлº³åµÄÊý¾ÝÈ«²¿Ð´³öµ½Ä¿µÄµØ
Îå¡¢WriterµÄ»ù±¾·½·¨
void write£¨int c£© throws IOException ÏòÊä³öÁ÷дÈëÒ»¸ö×Ö·ûÊý¾Ý
void write£¨String str£© throws IOException½«Ò»¸ö×Ö·û´®ÖеÄ×Ö·ûдÈëµ½Êä³öÁ÷
void write£¨String str£¬int offset£¬int length£© ½«Ò»¸ö×Ö·û´®´Óoffset¿ªÊ¼µÄlength¸ö×Ö·ûдÈëµ½Êä³öÁ÷
void flush£¨£© throws IOException ½«Êä³öÁ÷Öлº³åµÄÊý¾ÝÈ«²¿Ð´³öµ½Ä¿
Ïà¹ØÎĵµ£º
ÎÒÃǶ¼ÖªµÀÒ»¸ö¶ÔÏóֻҪʵÏÖÁËSerilizable½Ó¿Ú£¬Õâ¸ö¶ÔÏó¾Í¿ÉÒÔ±»ÐòÁл¯£¬javaµÄÕâÖÖÐòÁл¯Ä£Ê½Îª¿ª·¢ÕßÌṩÁ˺ܶà±ãÀû£¬ÎÒÃÇ¿ÉÒÔ²»±Ø¹ØÏµ¾ßÌåÐòÁл¯µÄ¹ý³Ì£¬Ö»ÒªÕâ¸öÀàʵÏÖÁËSerilizable½Ó¿Ú£¬Õâ¸öµÄËùÓÐÊôÐԺͷ½·¨¶¼»á×Ô¶¯ÐòÁл¯¡£
È»¶øÔÚʵ¼Ê¿ª·¢¹ý³ÌÖУ¬ÎÒÃdz£³£»áÓöµ½ÕâÑ ......
µ±Ç°ÔÚ½øÐеÄÏîÄ¿ÖУ¬ÔÚʹÓÃsplit·½·¨Ê±Óöµ½Ò»¸ö±È½ÏÒþ±ÎµÄÎÊÌ⣬×îºóÎÊÌâ½â¾öÁË£¬µÃµ½µÄÒ»¸öÆôµÏ¾ÍÊÇÔÚʹÓÃÕâЩº¯Êýʱ£¬ÕæµÄÐèÒªÈÏÕæ²Î¿¼Îĵµ£¬¶¼¹Ö×Ô¼ºÌ«´ÖÐÄ£¬ÏÂÃæ×ܽáÒ»ÏÂÒÔ¼ÓÉî¼ÇÒä
ÎÊÌâÃèÊö£º
´ÓÊý¾Ý¿â·µ»ØµÄÊý¾Ý´®£¬ÐèÒª¼ÆËãÊý¾ÝµÄ¸ö ......
JavaÌṩÁËÒ»Ì×»úÖÆÀ´¶¯Ì¬Ö´Ðз½·¨ºÍ¹¹Ôì·½·¨£¬ÒÔ¼°Êý×é²Ù×÷µÈ£¬ÕâÌ×»úÖÆ¾Í½Ð——·´Éä¡£·´Éä»úÖÆÊÇÈç½ñºÜ¶àÁ÷Ðпò¼ÜµÄʵÏÖ»ù´¡£¬ÆäÖаüÀ¨Spring¡¢HibernateµÈ¡£ÔÀíÐÔµÄÎÊÌâ²»ÊDZ¾ÎĵÄÖØµã£¬½ÓÏÂÀ´ÈÃÎÒÃÇÔÚʵÀýÖÐѧϰÕâÌ×¾«²ÊµÄ»úÖÆ¡£
1. µÃµ½Ä³¸ö¶ÔÏóµÄÊôÐÔ
public Object getProperty(Object owner, String f ......
ÔÚÍøÉÏÕÒÁ˼¸¸öÓÃjava»ñÈ¡±¾»úIPµØÖ·µÄ´úÂ룬·¢ÏÖ¶¼ÉÙ¶¼ÓÐЩ²»ÍêÃÀ£¬×Ô¼ºÕûÀíÁËÒ»ÏÂ.ͻȻ֮¼äºÜÏë°Ñ×Ô¼ºµÄIPµØÖ·¸ø»ñÈ¡ÁË£¬ËäÈ»ÓÃϵͳ×Ô´øÃüÁî¿ÉÒԵõ½£¬µ«×Ô¼ºÏëдһ¸ö³ÌÐò»ñȡһÏ£¬µ½ÍøÉÏËÑË÷ÁËÒ»ÏÂjava»ñÈ¡±¾»úIPµØÖ·µÄ·½·¨£¬½á¹û¾ÓÈ»·¢ÏÖûÓÐÒ»¸öÊÇ¿ÉÒÔÓõ쬯øµÄÎÒÀÏÈ˼ÒÍÂѪ£¬
ÕâЩÈ˱Õ×ÅÑÛ¾¦Ð´³ÌÐò£¬Ð´ÍêÁ˾ÍÍùÍøÉ ......
Óû§·ÃÎÊ¿ØÖÆ(Access control )»úÖÆ×ÜÊÇÎ§ÈÆ´ÖÁ£¶ÈºÍϸÁ£¶ÈÁ½¸ö·½ÃæÀ´ÌÖÂÛ£º
¡¡¡¡´ÖÁ£¶È¿ØÖÆ£º¿ÉÒԹ涨·ÃÎÊÕû¸ö¶ÔÏó»ò¶ÔÏóȺµÄij¸ö²ã£¬¶øÏ¸Á£¶È¿ØÖÆÔò×ÜÊÇÔÚ·½·¨»òÊôÐÔ²ã½øÐпØÖÆ£¬±ÈÈ磺
¡¡¡¡´ðÓ¦Ò»¸öÎļþΪֻ¶ÁÊÇÊôÓÚ´ÖÁ£¶È¿ØÖÆ£¬¶ø´ðÓ¦¶ÔÕâ¸öÎļþijÐÐÓÐд²Ù×÷ÔòÊôÓÚϸÁ£¶È¿ØÖÆ¡£
¡¡¡¡Ò»¸öºÃµÄÓû§¿ØÖÆ»úÖÆµ±È»¼È´ðÓ¦ ......