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

JavaÖÐFile,byte[],Object¼äµÄת»»

Ò»¡¢ÓÐÁ½µãÐèҪעÒ⣺
    1¡¢Object ¶ÔÏó±ØÐëÊÇ¿ÉÐòÁл¯¶ÔÏó ¡£
    2¡¢¿ÉÐòÁл¯µÄ Object
¶ÔÏ󶼿ÉÒÔת»»ÎªÒ»¸ö´ÅÅÌÎļþ£»·´¹ýÀ´Ôò²»Ò»¶¨³ÉÁ¢£¬Ö»ÓÐÐòÁÐ
         »¯Îļþ²Å¿ÉÒÔת»»Îª Object ¶ÔÏó¡£
¶þ¡¢Ïà¹ØµÄת»»·½·¨£º
      
import
 java.io.BufferedOutputStream;
import
 java.io.ByteArrayInputStream;
import
 java.io.ByteArrayOutputStream;
import
 java.io.File;
import
 java.io.FileInputStream;
import
 java.io.FileOutputStream;
import
 java.io.IOException;
import
 java.io.ObjectInputStream;
import
 java.io.ObjectOutputStream;
import
 java.io.Serializable;
public
 
class
 Byte_File_Object 
...
{
    
/** */
/**
     * Îļþת»¯Îª×Ö½ÚÊý×é
     * @Author Sean.guo
     * @EditTime 2007-8-13 ÉÏÎç11:45:28
     
*/
    
public
 
static
 
byte
[] getBytesfromFile(File f) 
...
{
        
if
 (f 
==
 
null

...
{
            
return
 
null
;
        }
        
try
 
...
{
            FileInputStream stream 
=
 
new
 FileInputStream(f);
            ByteArrayOutputStream out 
=
 
new
 ByteArrayOutputStream(
1000
);
            
byte
[] b 
=
 
new
 
byte
[
1000
];
     


Ïà¹ØÎĵµ£º

Javaѧϰ´ÓÈëÃŵ½¾«Í¨

ÔÚËùÓеÄJavaÊé¼®µ±ÖУ¬Æäʵ×î×îÓÐÓõ쬲¢²»ÊÇO′reillyµÄ Java Serials£¬ÕæÕý×î×îÓÐÓô¦ÊÇJDKµÄÎĵµation£¡¼¸ºõÄãÏë»ñµÃµÄËùÓеÄ֪ʶÔÚÎĵµationÀïÃæÈ«²¿¶¼ÓУ¬ÆäÖÐ×îÖ÷ÒªµÄ²¿·Öµ±È»ÊÇJava»ù´¡Àà¿âµÄAPIÎĵµ£¬Êǰ´ÕÕpackageÀ´×éÖ¯µÄ£¬¶ÔÓÚÿһ¸öclass¶¼ÓÐÏêϸµÄ½âÊÍ£¬ËüµÄ¼Ì³Ð¹ØÏµ£¬ÊÇ·ñʵÏÖÁËij¸ö½Ó¿Ú£¬Í¨³£ÓÃÔÚÄÄÐ ......

javaµÄ½Ó¿ÚºÍ³éÏóÀàÖ®½¨ÖþÒâÒå

½ñÌìÔÚÑо¿ÏîÄ¿ÖеÄÉè¼ÆË¼ÏëµÄʱºò£¬µÃ³öÒ»¸ö¶Ô½Ó¿ÚºÍ³éÏóÀà·Ç³£ÐÎÏóµÄÒ»¸ö±ÈÓ÷¡£
ËûÃǶ¼ÔÚ“½¨Öþ”ÖеÃÒÔÓ¦Ó㬽ӿھÍÏñ´óÂ¥µÄͼֽ£¬³éÏóÀà¾ÍÊÇ´óÂ¥µÄ¼Ü¹¹£¬Â¥²ã¾ÍÊÇÕæÕýµÄÀà¡£
ͼֻֽÊǹ滮³ö´óÂ¥µÄÑù×Ó£¬¹æ¶¨ÁËÒª×ö³ÉÉè¼ÆÑùʽ²ÅÄÜÕæÕý´òµ½Öî¶àЧ¹û£¬µ«ÊDz¢²»¹æ¶¨ÒªÈçºÎ¸Ç£¬¶ÔÂ¥²ãµÄÉè¼ÆÒ²²»¿¼ÂÇ£¬ÓÐÁËͼֽ£¬ ......

JAVA×¢½â


AnnotationÊÇJava5¡¢6Ö»ºóµÄÐÂÌØÕ÷£¨ÖÐÎijÆÖ®Îª×¢½â£©£¬²¢ÇÒÔ½À´Ô½¶àµÄµÃµ½ÁËÓ¦Ó㬱ÈÈçSpring¡¢Hibernate3¡¢Struts2¡¢iBatis3¡¢JPA¡¢JUnitµÈµÈ¶¼µÃµ½Á˹㷺ӦÓã¬Í¨¹ýʹÓÃ×¢½â£¬´úÂëµÄÁé»îÐÔ´ó´óÌá¸ß¡£
   ÕâЩ¶¼ÊÇʹÓñðÈ˶¨ÒåµÄ×¢½â£¬Ò»°ã×¢½âµÄʹÓö¼ÊÇÔÚһЩ»ù´¡¿ò¼Ü»òÕßÀà¿âÖÐÀ´¶¨ÒåµÄ£¬Òò´ËºÜÉÙ¼û¹ýÓÐÈ ......

¿ìËÙÅÅÐòµÄÈô¸ÉÔ´ÂëÆÊÎö(°üÀ¨JAVA¡¢Qt¡¢Ëã·¨µ¼ÂÛ)

 ¿ìÅÅ£º¿ìËÙÅÅÐò£¬ÄѶȲ»ÊÇÌ«´ó£¬µ«ÊÇÊÇÎÒ¾­³£°ÑÍæµÄС´úÂëÖ®Ò»£¬ÒýÓÿìÅÅ´úÂ봴ʼÈ˵ÄÒ»¾ä»°“Òª²»ÊǼòÁ·ÓÖÃ÷ÏÔûÓдíÎó£¬Òª²»ÊǸ´ÔÓûÓÐÃ÷ÏԵĴíÎó”
ÆðÒò£º
Ö÷ÒªÊÇǰһÕó¿´ÁõÈê¼ÑµÄ¡¶Ëã·¨ÒÕÊõÓëÐÅϢѧ¾ºÈü¡·P73Ò³£¬ÅöÇÉÎÒÓÖÇ×ÊÖдÁËÒ»±éÄÇÊéÉϵIJâÊÔÁËһϣ¬·¢ÏÖ¾¹È»ÊÇ´íÎóµÄ£¬È»ºóÎÒÓÖ²âÊÔÁËÒ»ÏÂÎÒÒÔÇ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ