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

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  ½«Êä³öÁ÷Öлº³åµÄÊý¾ÝÈ«²¿Ð´³öµ½Ä¿


Ïà¹ØÎĵµ£º

Ãô½Ý¿ª·¢Öбàд¸ßÖÊÁ¿Java´úÂë

Ãô½Ý¿ª·¢µÄÀíÄîÒѾ­Á÷ÐÐÁ˺ܳ¤µÄʱ¼ä£¬ÔÚÃô½Ý¿ª·¢ÖеĿª·¢µü´ú½×¶ÎÖУ¬ÎÒÃÇ¿ÉÒÔͨ¹ýÎå¸ö²½Ö裬À´ÓÐЧµÄÌá¸ßÕû¸öÏîÄ¿µÄ´úÂëÖÊÁ¿¡£
JavaÏîÄ¿¿ª·¢¹ý³ÌÖУ¬ÓÉÓÚ¿ª·¢ÈËÔ±µÄ¾­Ñé¡¢Java´úÂë±àдϰ¹ß£¬ÒÔ¼°È±·¦Í³Ò»µÄ±ê×¼ºÍ¹ÜÀíÁ÷³Ì£¬ÍùÍùµ¼ÖÂÕû¸öÏîÄ¿µÄ´úÂëÖÊÁ¿½Ï²î£¬ÄÑÓÚά »¤£¬ÐèÒª½Ï´óµÄ²âÊÔͶÈëºÍÖÜÆÚµÈÎÊÌâ¡£ÕâЩÎÊÌâÔÚÒ»¸öÏ ......

JavaͼƬ´¦Àí·½·¨——·Å´ó¡¢ËõС¡¢Çиî

import java.io.*;
import java.awt.*;
import java.awt.image.*;
import java.awt.Graphics;
import java.awt.color.ColorSpace;
import javax.imageio.ImageIO;
public class ChangeImageSize
{
    /** *//**
     * Ëõ·ÅͼÏñ
     * @param srcImage ......

JAVA java.io.InvalidClassException¼±½â


JAVA--java.io.InvalidClassException¼±½â
×ֺţºT|T
JAVA--java.io.InvalidClassException¼±½â
java.io.InvalidClassException: message.RegisterMessage; local class incompatible: stream classdesc serialVersionUID = 5540404719929042644, local class serialVersionUID = -8915824483106432775
»Ø´ð£º
×î¼Ñ ......

javaÊý¾Ý²Ù×÷——HibernateÓëJDBC

  ÕâÊÇÎÒµÚÒ»´Îд¼¼Êõ²©ÎÄ£¬Ï²»¶´ó¼ÒÌá³ö±¦¹óÒâ¼û¡£ÕâÆªÎÄÕÂÖ÷ÒªÏë½²Èý¸öÎÊÌâ¡£
   µÚÒ»£ºHibernateºÍJDBCµÄÇø±ð¡£
   ×÷Ϊjava³ÌÐòÔ±£¬ÎÒ¾õµÃŪÇå³þHibernateÓëJDBCµÄÇø±ð£¬²»½ö¶Ô´òºÃÔúʵµÄ»ù±¾¹¦±È½ÏÖØÒª£¬¾ÍÊÇÒÔºóµÄѧϰ£¬¿ª·¢Ò²¾ßÓÐÏ൱µÄ½è¼øÒâÒå¡£¿ÉϧµÄÊÇÏÖÔÚÓкÃЩ³ÌÐòÔ±²»Ð¼ÓÚѧ ......

JavaͼƬ´¦Àí

import java.awt.Image;
import java.awt.image.BufferedImage;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import javax.imageio.ImageIO;
import com.sun.image.codec.jpeg.JPEGCodec;
import com ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ