亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? logmanager.java

?? RemoteWAP is a Remote Administration Tool for any Operating System that can support the Java Virtual
?? JAVA
字號(hào):
/*
 *  LogManager.java
 *
 *  Copyright (C) 2004 Jay Scott
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program (gpl.txt); if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
package viewer;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.text.Format;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 *  The Log Manager class manages all operations to do with the log files. This
 *  includes Deleting, Creating, Appending and Reading the files.
 *
 *@author     Jay Scott
 *@created    July 21, 2004
 *@version    0.4
 */
public class LogManager {

    /**
     * This function gets the File Location and Name from the passed in variable
     * (LogName) and checks if the file is there and then the file is deleted
     * from the hard drive.
     * 
     * @param LogName
     *            The name of the log file to delete
     * @return Returns boolean value
     */
    public boolean deleteLogFile(String LogName) {

        boolean success = (new File(LogName)).delete();

        return success;
    }

    /**
     * This method gets the file location from a passed in variable (LogName)
     * and reads the file contents into a BufferReader which is then returned.
     * 
     * @param LogName
     *            The name of the log file to delete
     * @return The contains for the log file
     */
    public String readLogFile(String LogName) {

        File tmpFile;
        String strContent = "";

        tmpFile = new File(LogName);
        
        /* Read each line of the file into a temp variable */
        try {
            BufferedReader in = new BufferedReader(new FileReader(tmpFile));
            String str;
            while ((str = in.readLine()) != null) {
                strContent = strContent + str + "\n";
            }
            in.close();
        } catch (IOException e) {
            return strContent;
        }

        return strContent;
    }

    /**
     * This method gets a file location (logPath) and data (fileData). It checks
     * if there is already a file with the same name. If there is, it adds the
     * new text to that file else it creates a new file and writes the data to
     * it. The naming system I have used is to grab the date and the time then
     * add .log to the end of the formatted date.
     * 
     * @param fileData
     *            This holds the information that has to be written to disk.
     * @param logPath
     *            Description of the Parameter
     */
    public void writeLogFile(String fileData, String logPath) {

        Format DateFormat;

        /* Get the todays date */
        Date date = new Date();

        DateFormat = new SimpleDateFormat("dd-MMM-yy");
        String s = DateFormat.format(date);

        /* Check if the file exists */
        boolean fileExists = (new File(System.getProperty("user.dir")
                + File.separatorChar + logPath + File.separatorChar + s
                + ".log")).exists();

        String fileLog = System.getProperty("user.dir") + File.separatorChar
                + logPath + File.separatorChar + s + ".log";

        try {
        	/* If fileExists is true */
            if (fileExists) {
                BufferedWriter out = new BufferedWriter(new FileWriter(fileLog,
                        true));
                out.write(fileData);
                out.close();

            } else {
                BufferedWriter out = new BufferedWriter(new FileWriter(fileLog));
                out.write(fileData);
                out.close();
            }

        } catch (IOException e) {
        }
    }
}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成人在线免费| 国产人久久人人人人爽| 亚洲国产精品一区二区www在线| 懂色av中文字幕一区二区三区 | 色欧美片视频在线观看| 亚洲欧美偷拍三级| 色婷婷国产精品| 成人av资源站| 亚洲一级二级在线| 4438成人网| 国模少妇一区二区三区| 国产精品麻豆欧美日韩ww| 91免费小视频| 日韩专区一卡二卡| 久久人人超碰精品| av中文字幕亚洲| 五月天一区二区三区| 337p日本欧洲亚洲大胆精品| 高清日韩电视剧大全免费| 亚洲欧美偷拍另类a∨色屁股| 欧洲av一区二区嗯嗯嗯啊| 免费成人在线观看| 欧美激情一区三区| 欧美性大战久久| 激情综合一区二区三区| 国产精品免费久久久久| 欧美剧情片在线观看| 国产成人无遮挡在线视频| 亚洲黄色性网站| 精品国产乱码91久久久久久网站| 福利视频网站一区二区三区| 亚洲午夜在线电影| 久久精品欧美日韩| 精品视频在线免费观看| 成人综合婷婷国产精品久久蜜臀| 亚洲综合久久av| 欧美极品aⅴ影院| 欧美一区二区二区| av激情亚洲男人天堂| 日日夜夜免费精品视频| 国产精品久久久久一区二区三区| 欧美一卡在线观看| 91免费看视频| 大白屁股一区二区视频| 日韩有码一区二区三区| 亚洲三级在线免费| 久久久久久黄色| 91精品国产一区二区人妖| 97国产一区二区| 国产成人免费xxxxxxxx| 五月天一区二区| 亚洲午夜在线视频| 中文字幕亚洲在| www成人在线观看| 欧美一区二区三区免费视频| 99久久亚洲一区二区三区青草| 国产综合色产在线精品| 日韩黄色免费网站| 亚洲午夜久久久久| 亚洲乱码中文字幕综合| 国产精品久久久久9999吃药| 日韩av电影免费观看高清完整版| 中文字幕五月欧美| 国产日韩欧美高清在线| 欧美一二区视频| 欧美日韩国产综合一区二区三区| 91在线观看下载| eeuss鲁片一区二区三区 | 久久青草欧美一区二区三区| 正在播放一区二区| 欧美日韩视频第一区| 色噜噜夜夜夜综合网| 99久久精品免费看国产| eeuss鲁片一区二区三区| 成人激情免费电影网址| 国产一区二区福利| 国产一区福利在线| 国产一二精品视频| 国产精品一二三区在线| 国产在线精品一区二区夜色| 黄色成人免费在线| 国内精品免费在线观看| 九色综合狠狠综合久久| 国产在线视频精品一区| 经典三级视频一区| 国产精品一级二级三级| 国产成人综合精品三级| 丁香天五香天堂综合| 国产夜色精品一区二区av| 国产精品天天看| 欧美日韩一区高清| 欧美色图第一页| 欧美久久久久免费| 午夜电影一区二区三区| 天天影视色香欲综合网老头| 日本免费在线视频不卡一不卡二| 天天av天天翘天天综合网色鬼国产 | 国产农村妇女精品| 欧美国产成人精品| 一区二区在线观看免费视频播放| 一区二区在线观看免费 | 欧美日韩一区在线| 日韩欧美你懂的| 国产日韩欧美麻豆| 一区二区欧美国产| 麻豆专区一区二区三区四区五区| 精品综合免费视频观看| 成人av在线资源| 欧美日韩亚洲不卡| 久久蜜桃香蕉精品一区二区三区| 18成人在线观看| 日韩成人av影视| 成人av电影在线观看| 欧美伊人久久久久久久久影院| 欧美一卡2卡三卡4卡5免费| 久久一二三国产| 亚洲精品久久久蜜桃| 麻豆成人91精品二区三区| 久久久精品人体av艺术| 亚洲人成网站精品片在线观看| 亚洲成a天堂v人片| 国产成人在线影院| 欧美日本国产视频| 国产精品入口麻豆原神| 日韩精品欧美成人高清一区二区| 国产成人精品综合在线观看| 欧美在线色视频| 国产亚洲福利社区一区| 午夜精品久久久久久久99水蜜桃| 国产精品影视网| 欧美精品乱人伦久久久久久| 欧美精彩视频一区二区三区| 日韩精品高清不卡| 狠狠色丁香久久婷婷综合_中| 国产精品少妇自拍| 久久99国产精品麻豆| 欧美在线观看你懂的| 国产片一区二区| 蜜臀av性久久久久蜜臀aⅴ| 91久久精品日日躁夜夜躁欧美| 久久综合五月天婷婷伊人| 亚洲国产中文字幕在线视频综合| 国产宾馆实践打屁股91| 日韩欧美在线影院| 亚洲mv大片欧洲mv大片精品| www.亚洲色图| 国产视频一区在线播放| 美腿丝袜亚洲三区| 欧美精品tushy高清| 一区二区三区日韩精品视频| 不卡的电视剧免费网站有什么| 欧美电影免费观看完整版| 天天av天天翘天天综合网色鬼国产| 97久久超碰国产精品电影| 亚洲国产岛国毛片在线| 国产伦精品一区二区三区免费迷| 欧美成人精品3d动漫h| 日本vs亚洲vs韩国一区三区| 欧美视频在线一区二区三区| 一区二区三区资源| 色婷婷av一区二区三区之一色屋| 国产精品久久久久桃色tv| 成人免费观看av| 日本一区二区三级电影在线观看| 国产一区二区精品在线观看| 精品久久五月天| 国产最新精品精品你懂的| 精品国产伦一区二区三区观看方式| 丝袜诱惑亚洲看片| 欧美精品在线观看播放| 日精品一区二区三区| 91精品视频网| 久久er99精品| 久久亚区不卡日本| 成人深夜在线观看| 综合在线观看色| 欧美色图一区二区三区| 亚洲6080在线| 日韩精品一区国产麻豆| 日韩av在线播放中文字幕| 日韩一区二区在线看| 九色综合狠狠综合久久| 中文字幕欧美激情一区| 91丨九色丨蝌蚪富婆spa| 亚洲国产精品一区二区www在线| 欧美美女一区二区在线观看| 麻豆久久久久久| 国产午夜亚洲精品不卡| 99re热视频精品| 日韩国产精品91| 久久综合九色综合97婷婷女人| 丁香桃色午夜亚洲一区二区三区| 亚洲欧洲美洲综合色网| 欧美日韩一区二区三区四区| 免费在线视频一区| 国产女人水真多18毛片18精品视频 | 美女爽到高潮91| 国产嫩草影院久久久久| 欧美日韩一区三区| 国内成+人亚洲+欧美+综合在线|