示例#1
0
文件: Common.java 项目: SGGames/xxl
 /**
  * Returns the relational data path. The returned path contains a file separator at the end.
  *
  * @return String - the data path to relational sample files
  */
 public static String getRelationalDataPath() {
   return XXLSystem.getRootPath()
       + System.getProperty("file.separator")
       + "data"
       + System.getProperty("file.separator")
       + "relational"
       + System.getProperty("file.separator");
 }
示例#2
0
 protected void computeObjectSize(Object o) {
   try {
     objectSize = XXLSystem.getObjectSize(o);
   } catch (IllegalAccessException e) {
     objectSize = MemoryMonitorable.SIZE_UNKNOWN;
   }
   checkObjectSize = false;
 }
示例#3
0
文件: Common.java 项目: SGGames/xxl
 /**
  * Constructs the output directory and returns the path. The returned path contains a file
  * separator at the end.
  *
  * @return String - the OutPath
  */
 public static String getOutPath() {
   String path =
       XXLSystem.getOutPath()
           + System.getProperty("file.separator")
           + "output"
           + System.getProperty("file.separator")
           + "applications"
           + System.getProperty("file.separator")
           + "io";
   File f = new File(path);
   f.mkdirs();
   return path + System.getProperty("file.separator");
 }