锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久米奇亚洲,aa在线视频,性色av一区二区怡红http://www.aygfsteel.com/lillian1205/zh-cnSun, 01 Jun 2025 20:25:50 GMTSun, 01 Jun 2025 20:25:50 GMT60澶嶅埗鏂囦歡http://www.aygfsteel.com/lillian1205/articles/299173.htmllillianlillianWed, 21 Oct 2009 03:28:00 GMThttp://www.aygfsteel.com/lillian1205/articles/299173.htmlhttp://www.aygfsteel.com/lillian1205/comments/299173.htmlhttp://www.aygfsteel.com/lillian1205/articles/299173.html#Feedback0http://www.aygfsteel.com/lillian1205/comments/commentRss/299173.htmlhttp://www.aygfsteel.com/lillian1205/services/trackbacks/299173.html// 婧愭枃浠跺す 
    static String url1 = "c:\\riss";
    
// 鐩爣鏂囦歡澶?nbsp;
    static String url2 = "c:/d";

    
public  static void copy() throws IOException {
        
// 鍒涘緩鐩爣鏂囦歡澶?nbsp;
        (new File(url2)).mkdirs();
        
// 鑾峰彇婧愭枃浠跺す褰撳墠涓嬬殑鏂囦歡鎴栫洰褰?nbsp;
        File[] file = (new File(url1)).listFiles();
        
for (int i = 0; i < file.length; i++{
            
if (file[i].isFile()) {
                
// 澶嶅埗鏂囦歡 
                copyFile(file[i], new File(url2 + file[i].getName()));
            }

            
if (file[i].isDirectory()) {
                
// 澶嶅埗鐩綍 
                String sourceDir = url1 + File.separator + file[i].getName();
                String targetDir 
= url2 + File.separator + file[i].getName();
                copyDirectiory(sourceDir, targetDir);
            }

        }

    }


    
// 澶嶅埗鏂囦歡 
    public static void copyFile(File sourceFile, File targetFile)
            
throws IOException {
        
// 鏂板緩鏂囦歡杈撳叆嫻佸茍瀵瑰畠榪涜緙撳啿 
        FileInputStream input = new FileInputStream(sourceFile);
        BufferedInputStream inBuff 
= new BufferedInputStream(input);

        
// 鏂板緩鏂囦歡杈撳嚭嫻佸茍瀵瑰畠榪涜緙撳啿 
        FileOutputStream output = new FileOutputStream(targetFile);
        BufferedOutputStream outBuff 
= new BufferedOutputStream(output);

        
// 緙撳啿鏁扮粍 
        byte[] b = new byte[1024 * 5];
        
int len;
        
while ((len = inBuff.read(b)) != -1{
            outBuff.write(b, 
0, len);
        }

        
// 鍒鋒柊姝ょ紦鍐茬殑杈撳嚭嫻?nbsp;
        outBuff.flush();

        
//鍏抽棴嫻?nbsp;
        inBuff.close();
        outBuff.close();
        output.close();

    }


    
//澶嶅埗鏂囦歡澶?nbsp;
    public static void copyDirectiory(String sourceDir, String targetDir)
            
throws IOException {
        
// 鏂板緩鐩爣鐩綍 
        (new File(targetDir)).mkdirs();
        
// 鑾峰彇婧愭枃浠跺す褰撳墠涓嬬殑鏂囦歡鎴栫洰褰?nbsp;
        File[] file = (new File(sourceDir)).listFiles();
        
for (int i = 0; i < file.length; i++{
            
if (file[i].isFile()) {
                
// 婧愭枃浠?nbsp;
                File sourceFile = file[i];
                
// 鐩爣鏂囦歡 
                File targetFile = new File(new File(targetDir)
                        .getAbsolutePath()
                        
+ File.separator + file[i].getName());
                copyFile(sourceFile, targetFile);
            }

            
if (file[i].isDirectory()) {
                
// 鍑嗗澶嶅埗鐨勬簮鏂囦歡澶?nbsp;
                String dir1 = sourceDir + "/" + file[i].getName();
                
// 鍑嗗澶嶅埗鐨勭洰鏍囨枃浠跺す 
                String dir2 = targetDir + "/" + file[i].getName();
                copyDirectiory(dir1, dir2);
            }

        }

    }



lillian 2009-10-21 11:28 鍙戣〃璇勮
]]>
璇誨啓inihttp://www.aygfsteel.com/lillian1205/articles/297552.htmllillianlillianFri, 09 Oct 2009 07:25:00 GMThttp://www.aygfsteel.com/lillian1205/articles/297552.htmlhttp://www.aygfsteel.com/lillian1205/comments/297552.htmlhttp://www.aygfsteel.com/lillian1205/articles/297552.html#Feedback0http://www.aygfsteel.com/lillian1205/comments/commentRss/297552.htmlhttp://www.aygfsteel.com/lillian1205/services/trackbacks/297552.html鐢≒roperties鍜孯andomAccessFile

1 Properties
    鐢≒roperties璇誨彇鐗瑰埆綆鍗曪紝浠ヤ笅鏄竴浜涘皬鏂規硶
    鍐欐枃浠剁殑鏃跺欑敤BufferedWriter鍙互鑷敱鎹㈣錛屼唬鏇挎崲琛岀 銆備絾鏄敤榪欑鏂規硶鍐欐枃浠朵細瑕嗙洊鎺夋枃浠跺師鏈夌殑鍐呭錛屼篃灝辨槸璇翠笉鑳芥弧瓚寵拷鍔犱俊鎭殑鍔熻兘
榪欏氨鐢ㄥ埌RandomAccessFile浜?br />


public class IniRead {
private static Properties ini = null;
    
//璁劇疆INI鏂囦歡
    static File file=new File("Config-澧炲姞.ini");
    
static {
        
try    {
            ini 
= new Properties ();
            
//鍔犺澆鏂囦歡
            ini.load (new FileInputStream (file));
        }
catch (Exception ex) {
            ex.printStackTrace();
        }

    }

    
private IniRead() {
    }

    
/**
     * 璇誨彇INI淇℃伅
     * 
*/

    
public static String getIniKey (String key) {
        
if(!ini.containsKey (key)) {
            
return "";
        }

        
return ini.get(key).toString ();
    }

    
/**
     * 淇敼INI淇℃伅
     * 
*/

    
public static void setIniKey (String key, String value) {
        
if(!ini.containsKey (key)) {
            
return;
        }

        ini.put (key, value);
    }

    
/**
     * 淇濆瓨INI淇℃伅
     * 
*/

    
public static void saveIni (String k[]) {
        
try    {
            FileWriter fw 
= new FileWriter ("ADViewer.ini");
            BufferedWriter bw 
= new BufferedWriter (fw);
            bw.newLine ();
            
for (int i = 0; i < k.length; i++{
                bw.write (k[i] 
+ "=" + getIniKey (k[i]));
                System.out.println(getIniKey (k[i]));
                bw.newLine ();
            }

            
            bw.close ();
            fw.close ();
        }
catch (Exception ex) {
            ex.printStackTrace();
        }

    }

}

    


2  RandomAccessFile
    涓杈硅涓杈瑰啓錛岃繕鑳界Щ鍔ㄦ寚閽?/p>

/*
     * 璇誨彇闇娣誨姞鐨刬ni鏂囦歡淇℃伅錛屽茍鍐欏叆鍒扮浉搴旂殑ini鏂囦歡涓?br />      
*/

    
public void write(String readFile, String writeFile) throws Exception {

        RandomAccessFile rafRead 
= new RandomAccessFile(readFile, mode);
        RandomAccessFile rafWrite 
= new RandomAccessFile(writeFile, mode);
        
//鎸夎璇誨彇
        String lineStr = rafRead.readLine();
        
while (lineStr != null{
            
// 鍐欏叆涓琛屽悗鎹㈣
            lineStr += "\r\n";
            
//灝嗘寚閽堢Щ鍔ㄥ埌鏂囦歡灝鵑儴
            rafWrite.seek(rafWrite.length());
            
//鍐欏叆璇誨彇鐨勪竴琛?/span>
            rafWrite.write(lineStr.getBytes());

            lineStr 
= rafRead.readLine();
        }


    }


lillian 2009-10-09 15:25 鍙戣〃璇勮
]]>
java.util.TimerTask 鍜?Timer 瀹氭湡鎵ц浠誨姟http://www.aygfsteel.com/lillian1205/articles/296904.htmllillianlillianTue, 29 Sep 2009 07:40:00 GMThttp://www.aygfsteel.com/lillian1205/articles/296904.htmlhttp://www.aygfsteel.com/lillian1205/comments/296904.htmlhttp://www.aygfsteel.com/lillian1205/articles/296904.html#Feedback0http://www.aygfsteel.com/lillian1205/comments/commentRss/296904.htmlhttp://www.aygfsteel.com/lillian1205/services/trackbacks/296904.html闃呰鍏ㄦ枃

lillian 2009-09-29 15:40 鍙戣〃璇勮
]]>
灝唗xt鏂囦歡涓殑鏁版嵁璇誨埌鏁版嵁搴撲腑http://www.aygfsteel.com/lillian1205/articles/296899.htmllillianlillianTue, 29 Sep 2009 06:45:00 GMThttp://www.aygfsteel.com/lillian1205/articles/296899.htmlhttp://www.aygfsteel.com/lillian1205/comments/296899.htmlhttp://www.aygfsteel.com/lillian1205/articles/296899.html#Feedback0http://www.aygfsteel.com/lillian1205/comments/commentRss/296899.htmlhttp://www.aygfsteel.com/lillian1205/services/trackbacks/296899.html闃呰鍏ㄦ枃

lillian 2009-09-29 14:45 鍙戣〃璇勮
]]>
poi sql server2000 瀵煎叆鍒癳xcel 涓?/title><link>http://www.aygfsteel.com/lillian1205/articles/296898.html</link><dc:creator>lillian</dc:creator><author>lillian</author><pubDate>Tue, 29 Sep 2009 06:40:00 GMT</pubDate><guid>http://www.aygfsteel.com/lillian1205/articles/296898.html</guid><wfw:comment>http://www.aygfsteel.com/lillian1205/comments/296898.html</wfw:comment><comments>http://www.aygfsteel.com/lillian1205/articles/296898.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/lillian1205/comments/commentRss/296898.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/lillian1205/services/trackbacks/296898.html</trackback:ping><description><![CDATA[     鎽樿: 榪炴帴鏁版嵁搴撶被錛?    1  2import java.sql.*;  3import java.util.*;  4  5import com.microsoft.jdbc.*;  6  7public class SheetDataSou...  <a href='http://www.aygfsteel.com/lillian1205/articles/296898.html'>闃呰鍏ㄦ枃</a><img src ="http://www.aygfsteel.com/lillian1205/aggbug/296898.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/lillian1205/" target="_blank">lillian</a> 2009-09-29 14:40 <a href="http://www.aygfsteel.com/lillian1205/articles/296898.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> 主站蜘蛛池模板: <a href="http://" target="_blank">轮台县</a>| <a href="http://" target="_blank">濮阳县</a>| <a href="http://" target="_blank">辽阳县</a>| <a href="http://" target="_blank">大同市</a>| <a href="http://" target="_blank">龙里县</a>| <a href="http://" target="_blank">四会市</a>| <a href="http://" target="_blank">灵寿县</a>| <a href="http://" target="_blank">镇康县</a>| <a href="http://" target="_blank">泗阳县</a>| <a href="http://" target="_blank">达孜县</a>| <a href="http://" target="_blank">综艺</a>| <a href="http://" target="_blank">汝阳县</a>| <a href="http://" target="_blank">盐源县</a>| <a href="http://" target="_blank">张家川</a>| <a href="http://" target="_blank">新巴尔虎右旗</a>| <a href="http://" target="_blank">偏关县</a>| <a href="http://" target="_blank">南昌县</a>| <a href="http://" target="_blank">桐乡市</a>| <a href="http://" target="_blank">淮阳县</a>| <a href="http://" target="_blank">灌云县</a>| <a href="http://" target="_blank">溧阳市</a>| <a href="http://" target="_blank">耿马</a>| <a href="http://" target="_blank">海晏县</a>| <a href="http://" target="_blank">奎屯市</a>| <a href="http://" target="_blank">舞阳县</a>| <a href="http://" target="_blank">浦江县</a>| <a href="http://" target="_blank">延寿县</a>| <a href="http://" target="_blank">克什克腾旗</a>| <a href="http://" target="_blank">凤山县</a>| <a href="http://" target="_blank">安阳县</a>| <a href="http://" target="_blank">成安县</a>| <a href="http://" target="_blank">江川县</a>| <a href="http://" target="_blank">万年县</a>| <a href="http://" target="_blank">阿图什市</a>| <a href="http://" target="_blank">大足县</a>| <a href="http://" target="_blank">紫云</a>| <a href="http://" target="_blank">松溪县</a>| <a href="http://" target="_blank">靖边县</a>| <a href="http://" target="_blank">宿松县</a>| <a href="http://" target="_blank">玉山县</a>| <a href="http://" target="_blank">益阳市</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>