JavaÖеÄIOÁ÷֪ʶ×ܽᣨת£©
×ܽáÒ»£º
Java IOµÄÒ»°ãʹÓÃÔÔò£º
Ò»¡¢°´Êý¾ÝÀ´Ô´£¨È¥Ïò£©·ÖÀࣺ
1¡¢ÊÇÎļþ£º FileInputStream, FileOutputStream, FileReader, FileWriter
2¡¢ÊÇbyte[]£ºByteArrayInputStream, ByteArrayOutputStream
3¡¢ÊÇChar[]: CharArrayReader, CharArrayWriter
4¡¢ÊÇString: StringBufferInputStream, StringReader, StringWriter
5¡¢ÍøÂçÊý¾ÝÁ÷£ºInputStream, OutputStream, Reader, Writer
¶þ¡¢°´ÊÇ·ñ¸ñʽ»¯Êä³ö·Ö£º
1¡¢Òª¸ñʽ»¯Êä³ö£ºPrintStream, PrintWriter
Èý¡¢°´ÊÇ·ñÒª»º³å·Ö£º
1¡¢Òª»º³å£ºBufferedInputStream, BufferedOutputStream, BufferedReader, BufferedWriter
ËÄ¡¢°´Êý¾Ý¸ñʽ·Ö£º
1¡¢¶þ½øÖƸñʽ£¨Ö»Òª²»ÄÜÈ·¶¨ÊÇ´¿Îı¾µÄ£©: InputStream, OutputStream¼°ÆäËùÓдøStream½áÊøµÄ×ÓÀà
2¡¢´¿Îı¾¸ñʽ£¨º¬´¿Ó¢ÎÄÓ뺺×Ö»òÆäËû±àÂ뷽ʽ£©£»Reader, Writer¼°ÆäËùÓдøReader, WriterµÄ×ÓÀà
Îå¡¢°´ÊäÈëÊä³ö·Ö£º
1¡¢ÊäÈ룺Reader, InputStreamÀàÐ͵Ä×ÓÀà
2¡¢Êä³ö£ºWriter, OutputStreamÀàÐ͵Ä×ÓÀà
Áù¡¢ÌØÊâÐèÒª£º
1¡¢´ÓStreamµ½Reader,WriterµÄת»»ÀࣺInputStreamReader, OutputStreamWriter
2¡¢¶ÔÏóÊäÈëÊä³ö£ºObjectInputStream, ObjectOutputStream
3¡¢½ø³Ì¼äͨÐÅ£ºPipeInputStream, PipeOutputStream, PipeReader, PipeWriter
4¡¢ºÏ²¢ÊäÈ룺SequenceInputStream
5¡¢¸üÌØÊâµÄÐèÒª£ºPushbackInputStream, PushbackReader, LineNumberInputStream, LineNumberReader
¾ö¶¨Ê¹ÓÃÄĸöÀàÒÔ¼°ËüµÄ¹¹Ôì½ø³ÌµÄÒ»°ã×¼ÔòÈçÏ£¨²»¿¼ÂÇÌØÊâÐèÒª£©£º
µÚÒ»£¬¿¼ÂÇ×îÔʼµÄÊý¾Ý¸ñʽÊÇʲô£ºÊÇ·ñΪÎı¾£¿
µÚ¶þ£¬ÊÇÊäÈ뻹ÊÇÊä³ö?
µÚÈý£¬ÊÇ·ñÐèҪת»»Á÷£ºInputStreamReader, OutputStreamWriter?
µÚËÄ£¬Êý¾ÝÀ´Ô´£¨È¥Ïò£©ÊÇʲô£ºÎļþ£¿Äڴ棿ÍøÂ磿
µÚÎ壬ÊÇ·ñÒª»º³å£ºbufferedReader £¨Ìرð×¢Ã÷£ºÒ»¶¨Òª×¢ÒâµÄÊÇreadLine()ÊÇ·ñÓж¨Ò壬ÓÐʲô±Èread, write¸üÌØÊâµÄÊäÈë»òÊä³ö·½·¨£©
µÚÁù£¬ÊÇ·ñÒª¸ñʽ»¯Êä³ö£ºprint?
×ܽá¶þ£º
Ê×ÏÈÊÇjavaµÄIO¡£ÕâÆƶ«Î÷¿ÉÕæ·ÑÊ£¬I/OÀà¿â³£Ê¹ÓÔÁ÷(stream)”ÕâÖÖ³éÏó¡£Ëùν”Á÷”ÊÇÒ»ÖÖÄÜÉú³É»ò½ÓÊÜÊý¾ÝµÄ£¬´ú±íÊý¾ÝµÄÔ´ºÍÄ¿±êµÄ¶ÔÏó¡£Á÷°ÑI/OÉ豸ÄÚ²¿µÄ¾ßÌå²Ù×÷¸øÒþ²ØÆðÀ´ÁË¡£ ÕýÈçJDKÎĵµËùÏÔʾµÄ£¬JavaµÄI/OÀà¿â·Ö³ÉÊäÈëºÍÊä³öÁ½´ó²¿·Ö¡£ËùÓÐInputStreamºÍReaderµÄÅÉÉúÀ඼ÓÐÒ»¸ö»ù±¾µÄ£¬¼Ì³ÐÏÂÀ´µÄ£¬ÄܶÁÈ¡µ¥¸ö»òbyteÊý×éµÄread( )·½·¨¡£Í¬Àí£¬ËùÓÐOutputStreamºÍWriterµÄÅÉÉúÀà
Ïà¹ØÎĵµ£º
ºÜ¶àʱºòÊý×é´æÔÚןܴóµÄȱÏÞ£¬Ê×ÏȱØÐëÏÈÉèÖÃÊý×éµÄ³¤¶È£¬µ±É趨ÁËÖ®ºó£¬¾ÍÎÞ·¨¸Ä±äÁË¡£
ÏÂÀ´ÊÇÒ»ÖÖÊý×鳤¶È¶¯Ì¬±ä»¯µÄÒ»ÖÖ·½·¨
package com.yz.mystack;
public class Stack {
Object[] datas;
Integer n=0;
Integer N=1;
public Stack(){
datas=new Object[N];
}
public void push(Object data){
......
eclipse
²Ëµ¥ -> Window -> Preferences, ´ò¿ªPreferences´°¿Ú£¬È»ºóÒÀ´ÎÑ¡Ôñ Java -> JadClipse£¬È·±£"Path to decompiler:"µÄֵΪ"jad.exe"¡£
http://hi.baidu.com/darmn/blog/item/56678e7f14f81a0129388af7.html
http://hi.baidu.com/zhangge9477/blog/item/adeced08c9663a3ae8248849. ......
±¾ÎÄÄÚÈÝÕª×Ô£º¡¶Java Web¿ª·¢½Ì³Ì——ÈëÃÅÓëÌá¸ßƪ£¨JSP+Servlet£©¡·
½»»¥µÄ»ù±¾¹ý³Ì°üÀ¨£º
l ´´½¨XMLHttpRequest¶ÔÏó£»
l ·¢ËÍÇëÇó£»
l ´¦ÀíÏìÓ¦¡£
´ ......
֮ǰÔÚ×öfindbugsµÄʱºò¾³£»á²é¿´×Ö½ÚÂ룬¶¼ÊÇÒ»Öª°ë½âµÄ
ÄÇÌì¿´µ½Ò»¸öÎÊÌ⣬¸ÕºÃ¿ÉÒÔ´Ó×Ö½ÚÂëÀ´½âÊÍ
ÕâЩÌâÄ¿³£¼ûÓÚÃæÊÔÌ⣬ͨ³£ÒªÊÇ˸ÒÕâôд´úÂ룬ÍêÈ«ÊÇÔÚÕÒËÀ¡£¡£
Java´úÂë
public class Test {
public static void main(String[]  ......
Õâ¸ö¿ò¼ÜÒ²ÊÇΪgoogle app engine×¼±¸µÄ¡£µ±Ê±¸Ð¾õÖ±½ÓÔÚgaeÉÏsevletÌ«·³ÈËÁË£¬¾Í·â×°¸ö¼òÒ׵Ŀò¼Ü¡£Ê¹ÓõÄʱºòÖ»ÐèÒªÅäÖÃweb.xmlÖÐDispacherSevletºÍpackage.propertiesÖеÄpackage.path£¨Ä¬ÈÏɨÃèµÄ°ü£©¼´¿É
gaeÀý×Ó£ºhttp://orzblogs.appspot.com/Home.htm
´óѧµÄʱºòºÜBS java£¬Ñ§ÁËÖ®ºó¾ÍÈÓµôÁË£¬ÏÖÔÚ¹¤×÷Á˲ſªÊ¼ ......