Package com.eatle.persistent.pojo.system.systemdata

Examples of com.eatle.persistent.pojo.system.systemdata.SystemLog


  {
    List<SystemLog> list = new ArrayList<SystemLog>();
    File[] logFiles = new File(logFilePath).listFiles();
    for (File f : logFiles)
    {
      SystemLog sl = new SystemLog();
      sl.setFileName(f.getName());
      sl.setFileSize(NumberFormat.getInstance().format(
          (f.length() / Math.pow(1024.0, 1))) + " KB");
      sl.setLastModified(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")
          .format(new Date(f.lastModified())));

      list.add(sl);
    }
    return list;
View Full Code Here

TOP

Related Classes of com.eatle.persistent.pojo.system.systemdata.SystemLog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.