Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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²Ù×÷Îļþ£¨´´½¨¡¢É¾³ý¡¢¸´ÖÆ¡¢¼ôÇУ©

package fileTest;
import java.io.*;
public class FileOperate {
   public FileOperate() {
   }
  
   public static void main(String args[]){
     //  newFolder("D:/100");
       moveFile("e:/978 ......

JavaÓïÑÔÈçºÎ·ÃÎʲ»Í¬×Ö·û¼¯µÄOracleÊý¾Ý

Ò»¡¢java·ÃÎÊÖÐÎÄOracleÊý¾Ý¿âÉÏÁ¬½ÓµÄUS7ASCIIÊý¾Ý¿â
1¡¢¶Á·½·¨
public String convertLink_DB(String s) {
  if(s != null){
   try{
    byte[] b = s.getBytes();
    for(int i=0; i<b.length; i++){
     b[i] ......

AndroidÖи÷ÖÖJAVA°üµÄ¹¦ÄÜÃèÊö


ÔÚAndroidµÄÓ¦ÓóÌÐò¿ª·¢ÖУ¬Í¨³£Ê¹ÓõÄÊÇJAVAÓïÑÔ£¬³ýÁËÐèÒªÊìϤJAVAÓïÑԵĻù´¡ÖªÊ¶Ö®Í⣬»¹ÐèÒªÁ˽âAndroidÌṩµÄÀ©Õ¹µÄJAVA¹¦ÄÜ¡£
ÔÚÒ»°ãµÄJAVAÓ¦ÓÃÖУ¬Èç¹ûÐèÓÃÒýÓûù´¡Àà¿â£¬Í¨³£ÐèҪʹÓÃÈçϵķ½Ê½£º
import
javax.swing.*;
ÒÔÉÏ´úÂë±íʾÁËÒýÓÃJAVAµÄGUI×é¼þSwing,javax.swing¼´JAVAÖеÄÒ»¸ö°ü¡£
androidÌá¹©Ò ......

×Ô¼ºÊÜÁ˵ã´Ì¼¤ JavaÄܹ»Ìæ´úCÓïÑÔÂð£¿


ÎÒ²»ÖªµÀÕâƪÎÄÕµÄ×÷ÕßÊÇË­£¬µ«ÎÒÖªµÀ£¬Ëû¶ÔjavaÓÐÒ»ÖÖºÜÉîµÄÀí½â£¬ÆäʵÎÄÕÂÖв¢Ã»ÓÐÌåÏÖ³ö×÷Õ߶Ôjava¼¼ÊõÉî²ãÀí½â£¬µ«ÊÇ´ÓÎÄÖеÄÿһ¾ä»°ÖУ¬ÎÒ¸ÐÊܵ½ÁËһЩ¶«Î÷¡£ÕâÊÇһƪºÜºÃµÄÎÄÕ£¬Ò²¿ÉÒÔ°ïÖúºÜ¶àÈËÃÔãµÄÈ˽â¾öÎÊÌâ¡£´øÀ´ºÍ´ó¼Ò·ÖÏíһϡ£
Ç°²»¾ÃCSDN¿¯µÇÁËһƪ¡¶CÓïÑÔÒѾ­ËÀÁË¡·µÄÎÄÕ£¬ÒýÆðÁËһЩÕùÂÛ¡£ÆäʵÄÇÆ ......

JavaʼþÄ£ÐÍÓëAndroidʼþÄ£Ð͵ıȽÏ

JavaʼþÄ£ÐÍÓëAndroidʼþÄ£Ð͵ıȽÏ
±È½Ï½á¹û£ºAndroid½è¼øÁËJava2ÖеÄUIʼþ´¦Àí»úÖÆ£¬µ«ÊÇ£¬AndroidÓÖÌṩÁËÁíÒ»ÖÖʼþ處ÀíÆ÷£¨event handler£©£¬¶øÕâ¸ö·½Ê½ÊÇ·ñÓëjava1.0ʼþÄ£ÐÍÒ»ÑùÄØ£¬ÓдýÇóÖ¤¡£
JavaʼþÄ£ÐÍ£º
ÎÒÃÇ°ÑJDK1.0ʼþ´¦ÀíÄ£ÐͳÉΪJava1.0ʼþÄ£ÐÍ£¬¶ø´Ójdk1.1ºóµÄ°æ±¾Ê¼þ´¦ÀíÄ£ÐͳÆΪJava 2Ê ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ