Java¶ÁȡͼƬÎļþµÄ¿í¶ÈºÍ¸ß¶È
InputStream is = new FileInputStream(filename);//ͨ¹ýÎļþÃû³Æ¶ÁÈ¡
»ò
InputStream is =new ByteArrayInputStream(byte[] a);//ͨ¹ýÎļþµÄ×Ö½ÚÊý×é¶ÁÈ¡
BufferedImage buff = ImageIO.read(is);
buff.getWidth();¡¡//µÃµ½Í¼Æ¬µÄ¿í¶È
buff.getHeight(); //µÃµ½Í¼Æ¬µÄ¸ß¶È
is.close(); //¹Ø±ÕStream
Ïà¹ØÎĵµ£º
/**
* Title: ConnectPool.java
* Description: Á¬½Ó³Ø¹ÜÀíÆ÷
* Copyright: Copyright (c) 2002/12/25
* Company:
* Author :
* Version 2.0
*/
import java.io.*;
import java.sql.*;
import java.util.*;
import java.util.Date;
/**
* ¹ÜÀíÀàDBConnectionManagerÖ§³Ö¶ÔÒ»¸ö»ò¶à¸öÓÉÊôÐÔÎļ ......
ΪÁËÓ¦¸¶2009Äê11ÔÂ8ºÅ¹ã¶«µçÍøµÄ±ÊÊÔÌâÄ¿£¬ÌصØÕÒµ½Ò»ÆªJava±ÊÊÔÌâÄ¿(http://blog.csdn.net/yexianyi/archive/2009/04/25/4123350.aspx)£¬ÏÖÖØÐÂתÔØʹÓá£
Java±ÊÊÔÌ⼯½õ
1.MVCµÄ¸÷¸ö²¿·Ö¶¼ÓÐÄÇЩ¼¼ÊõÀ´ÊµÏÖ?ÈçºÎʵÏÖ?
´ð£ºMVCÊÇModel£View£ControllerµÄ¼òд¡£"Model" ´ú±íµÄÊÇÓ¦ÓõÄÒµÎñÂß¼£¨Í¨¹ýJavaBean£¬EJB× ......
×òÌ쿪ʼ¾ÍÒµ°àµÄ¿Î³Ì¾Í¿ªÊ¼ÁË£¬Ç°¼¸ÌìÕÅТÏéÀÏʦ¸øÎÒÃǽ²ÁËjavaµÄһЩ»ù´¡µÄ¶«Î÷£¬ÕÅÀÏʦµÄ¿Î֪ʶÁ¿´ó£¬ÉîÈëdz³ö£¬ÁîÈË»ñÒæ·Ëdz£¬½ÓÏÂÀ´¾ÍÓÃÎÒÀí½âµÄ¶«Î÷ÔÚÕâÀïºÍ´ó¼ÒÒ»Æð̽ÌÖһϡ£
sun¹«Ë¾ÔÚjava1.5°æ±¾Ôö¼ÓÁ˲»ÉÙÐÂÌØÐÔ£¬ÀýÈ磺»ù±¾Êý¾ÝÀàÐ͵Ä×Ô¶¯×°ÏäÓë²ðÏä¡¢¿É±ä²ÎÊý¡¢ÔöÇ¿forÑ»·¡¢Ã¶¾Ù¡¢ ......
1.½Ó¿ÚÓë³éÏóÀàÇø±ð
abstract class ÔÚ Java ÓïÑÔÖбíʾµÄÊÇÒ»Öּ̳йØϵ£¬Ò»¸öÀàÖ»ÄÜʹÓÃÒ»´Î¼Ì³Ð¹Øϵ¡£µ«ÊÇ£¬Ò»¸öÀàÈ´¿ÉÒÔʵÏÖ¶à¸öinterface¡£
¡¡¡¡ÔÚabstract class ÖпÉÒÔÓÐ×Ô¼ºµÄÊý¾Ý³ÉÔ±£¬Ò²¿ÉÒÔÓзÇabstarctµÄ³ÉÔ±·½·¨£¬¶øÔÚinterfaceÖУ¬Ö»Äܹ»Óо²Ì¬µÄ²»Äܱ»Ð޸ĵÄÊý¾Ý³ÉÔ± ......