Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

java IO³õ²½

ʲôÊÇÁ÷£º
Á÷ÊÇÒ»¸ö³éÏóµÄ¸ÅÄî¡£µ±Java³ÌÐòÐèÒª´ÓÊý¾ÝÔ´¶ÁÈ¡Êý¾Ýʱ£¬»á¿ªÆôÒ»¸öµ½Êý¾ÝÔ´µÄÁ÷¡£Êý¾ÝÔ´¿ÉÒÔÊÇÎļþ£¬ÄÚ´æ»òÕßÍøÂçµÈ¡£Í¬Ñù£¬µ±³ÌÐòÐèÒªÊä³öÊý¾Ýµ½Ä¿µÄµØʱҲһÑù»á¿ªÆôÒ»¸öÁ÷£¬Êý¾ÝÄ¿µÄµØÒ²¿ÉÒÔÊÇÎļþ¡¢ÄÚ´æ»òÕßÍøÂçµÈ¡£Á÷µÄ´´½¨ÊÇΪÁ˸ü·½±ãµØ´¦ÀíÊý¾ÝµÄÊäÈëÊä³ö¡£
Á÷·ÖΪ×Ö½ÚÁ÷ºÍ×Ö·ûÁ÷¡£×Ö½ÚÁ÷Ò²³ÆΪԭʼÊý¾Ý£¬ÐèÒªÓû§¶ÁÈëºó½øÐÐÏàÓ¦µÄ±àÂëת»»¡£¶ø×Ö½ÚÁ÷µÄʵÏÖÊÇ»ùÓÚ×Ô¶¯×ª»»µÄ£¬¶ÁÈ¡Êý¾Ýʱ»á°ÑÊý¾Ý°´ÕÕJVMµÄĬÈϱàÂë×Ô¶¯×ª»»³É×Ö·û¡£
×Ö½ÚÁ÷ÓÉInputStreamºÍOutputStream´¦Àí£¬¶ø×Ö·ûÁ÷ÓÉReaderºÍWriter´¦Àí¡£ReaderºÍWriterÊÇJavaºó¼ÓÈëµÄ´¦ÀíÀ࣬³öÓÚÈÃÊý¾ÝµÄ´¦Àí¸ü·½±ãµÄÄ¿µÄ¡£
×Ö½ÚÁ÷´¦Àí¸ÅÊö£º
¶ÔÓÚ×Ö½ÚÁ÷´¦ÀíµÄÀ඼¼Ì³Ð×ÔInputStreamºÍOutputStreamÕâÁ½¸ö³éÏóÀà¡£
InputStreamÌṩµÄ×îÖØÒªµÄ·½·¨ÊÇ£º
Java´úÂë
read();   
read(byte[] b) ;   
read(byte[] b, int off, int len) ;  
read();
read(byte[] b) ;
read(byte[] b, int off, int len) ;
ÓÃÓÚ´ÓÊäÈëÁ÷ÖжÁÈ¡×Ö½Ú¡£
OutputStreamÌṩµÄ×îÖØÒªµÄ·½·¨ÊÇ£º
Java´úÂë
write(int b);   
write(byte[] b);   
write(byte[] b, int off, int len)   
write(int b);
write(byte[] b);
write(byte[] b, int off, int len)
 
ÓÃÓÚ½«×Ö½ÚдÈëÊä³öÁ÷¡£
×Ö½ÚÁ÷´¦ÀíÀà¸ÅÊö£º
×Ö½ÚÁ÷µÄ´¦ÀíÀàÓкܶ࣬ËûÃǶ¼¼Ì³Ð×ÔInputStream»òÕßOutputStream³éÏóÀà¡£
ÊäÈëÁ÷£º
ÏÈ̸̸ÊäÈëÁ÷£¬ÊäÈëÁ÷ÖиúÊý¾ÝÔ´Ö±½Ó½Ó´¥µÄÀàÓУºFileInputStreamºÍByteArrayInputStream£¬ËûÃÇ·Ö±ðʵÏÖÁË´ÓÎļþ»òÕßÄÚ´æÖеÄ×Ö½ÚÊý×é¶ÁÈëÊý¾Ýµ½ÊäÈëÁ÷¡£
ÆäËûµÄÊäÈëÁ÷´¦ÀíÀ඼ÊÇ×°ÊÎÀࣨDecoratorģʽ£©£¬ÏÂÃæ¶ÔËûÃǽøÐÐһϼòµ¥½éÉÜ£º
BufferedInputStream£º ÌṩÁË»º³å¹¦ÄÜ¡£
DataInputStream: ÔÊÐíÓ¦ÓóÌÐòÒÔÓë»úÆ÷Î޹ط½Ê½´Óµ×²ãÊäÈëÁ÷ÖжÁÈ¡»ù±¾ Java Êý¾ÝÀàÐÍ¡£Ó¦ÓóÌÐò¿ÉÒÔʹÓÃÊý¾ÝÊä³öÁ÷дÈëÉÔºóÓÉÊý¾ÝÊäÈëÁ÷¶ÁÈ¡µÄÊý¾Ý¡£
PipedInputStream: ÔÊÐíÒԹܵÀµÄ·½Ê½À´´¦ÀíÁ÷¡£µ±Á¬½Óµ½Ò»¸öPipedOutputStreamºó£¬Ëü»á¶ÁÈ¡ºóÕßÊä³öµ½¹ÜµÀµÄÊý¾Ý¡£
PushbackInputStream: ÔÊÐí·Å»ØÒѾ­¶ÁÈ¡µÄÊý¾Ý¡£
SequenceInputStream: ÄܶԶà¸öinputstream½øÐÐ˳Ðò´¦Àí¡£
Êä³öÁ÷£º
»ù±¾ÉÏÿ¸öÊäÈëÁ÷À඼ÓÐÒ»¸öÏàÓ¦µÄÊä³öÁ÷À࣬ÌṩÏàÓ


Ïà¹ØÎĵµ£º

Java×Ô¶¨ÒåÒì³£Àà

×Ô¶¨ÒåÒì³£ : ²½Öè: ­
Ò»:´´½¨Ò»¸öÀà¼Ì³ÐÓÚThrowable»òÆä×ÓÀà; ­
¶þ:Ìí¼Ó¹¹Ôì·½·¨; ­
Èý:ÔÚÒ»¸ö·½·¨ÖÐʹÓÃthrowÅ׳öÒì³£ ­
ËÄ:ÔÚÁíÒ»¸ö·½·¨Öⶻñ²¢´¦ÀíÒì³£ ­
ʾÀý:
Ò»¡¢ ¼Ì³ÐThrowable Àà
public class MySecondException extends Throwable {
public MySecondException() {
s ......

FCKeditor 2.6.4 ÔÚjavaÖÐʹÓÃ

   1.FCKeditor ½éÉÜ
FCKeditor Õâ¸ö¿ªÔ´µÄHTML Îı¾±à¼­Æ÷¿ÉÒÔÈÃweb ³ÌÐòÓµÓÐÈçMS Word ÕâÑùÇ¿´óµÄ±à¼­¹¦ÄÜ£¬.FCKeditor Ö§³Öµ±Ç°Á÷ÐеÄä¯ÀÀÆ÷¡£
2£®×¼±¸¹¤×÷£º
»·¾³£ºwinddows XP¡¢tomcat6.0¡¢JDK1.6
ÏÂÔØ£º
1£©£ºFCKeditor_2.6.4.zip
µØÖ·£ºhttp://nchc.dl.sourceforge.net/sourc...itor_2.6.4.zi ......

JavaµÄÄÚ´æй©

JavaµÄÄÚ´æй©
===========================================================
×÷Õß: shwenwen(http://shwenwen.itpub.net)
·¢±íÓÚ: 2009.06.04 10:38
·ÖÀà: java¿ª·¢¼¼Êõ
³ö´¦: http://shwenwen.itpub.net/post/34911/485404
---------------------------------------------------------------
²»¹ÜÓÃjava C++ ......

javaͼƬÑéÖ¤Âë

import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Random;
import javax.imageio.ImageIO;
import javax.servlet.ServletException;
import javax.servlet.ServletOutpu ......

javaÓÅ»¯Õ¼ÓÃÄÚ´æµÄ·½·¨(Ò»)

java×öµÄϵͳ¸øÈ˵ÄÓ¡ÏóÊÇʲô£¿Õ¼Äڴ棡˵µÀÕâ¾ä»°¾Í»áÓÐN¶àÈËÕ¾³öÀ´Îªjava±ç»¤£¬²¢¾Ù³öÒ»¶ÑµÄÐÔÄܲâÊÔ±¨¸æÀ´Ö¤Ã÷ÕâÒ»µã¡£Æäʵ´ÓÀíÂÛÉÏÀ´½²java×öµÄϵͳ²¢²»±ÈÆäËûÓïÑÔ¿ª·¢³öÀ´µÄϵͳ¸üÕ¼ÓÃÄڴ棬ÄÇôΪʲôȴÓÐÕâôN¶àÀíÓÉÀ´Ö¤Ã÷ËüȷʵռÄÚ´æÄØ£¿Á½¸ö×Ö£¬ÂªÏ°¡£
£¨1£©±ðÓÃnew Boolean()¡£
Ôںܶೡ¾°ÖÐBooleanÀàÐÍÊDZØÐ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ