本文整理汇总了Java中org.hsqldb.lib.FileUtil.getFileUtil方法的典型用法代码示例。如果您正苦于以下问题:Java FileUtil.getFileUtil方法的具体用法?Java FileUtil.getFileUtil怎么用?Java FileUtil.getFileUtil使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.hsqldb.lib.FileUtil
的用法示例。
在下文中一共展示了FileUtil.getFileUtil方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initParams
import org.hsqldb.lib.FileUtil; //导入方法依赖的package包/类
protected void initParams(Database database, String fileSettingsString,
boolean defrag) {
this.database = database;
fa = FileUtil.getFileUtil();
textFileSettings = new TextFileSettings(database, fileSettingsString);
dataFileName = textFileSettings.getFileName();
if (dataFileName == null) {
throw Error.error(ErrorCode.X_S0501);
}
dataFileName = ((FileUtil) fa).canonicalOrAbsolutePath(dataFileName);
maxCacheRows = textFileSettings.getMaxCacheRows();
maxCacheBytes = textFileSettings.getMaxCacheBytes();
// max size is 256G
maxDataFileSize = (long) Integer.MAX_VALUE * Logger.largeDataFactor;
cachedRowPadding = 1;
dataFileScale = 1;
}
示例2: HsqlProperties
import org.hsqldb.lib.FileUtil; //导入方法依赖的package包/类
public HsqlProperties(String fileName, String fileExtension) {
stringProps = new Properties();
this.fileName = fileName;
this.fileExtension = fileExtension;
fa = FileUtil.getFileUtil();
}
示例3: initParams
import org.hsqldb.lib.FileUtil; //导入方法依赖的package包/类
/**
* Initial external parameters are set here. The size if fixed.
*/
protected void initParams(Database database, String baseFileName,
boolean defrag) {
this.dataFileName = baseFileName + ".data.tmp";
this.database = database;
fa = FileUtil.getFileUtil();
dataFileScale = 64;
cachedRowPadding = dataFileScale;
initialFreePos = dataFileScale;
maxCacheRows = 2048;
maxCacheBytes = maxCacheRows * 1024L;
maxDataFileSize = (long) Integer.MAX_VALUE * dataFileScale;
}
示例4: deleteDatabase
import org.hsqldb.lib.FileUtil; //导入方法依赖的package包/类
static void deleteDatabase(String path) {
FileUtil fileUtil = FileUtil.getFileUtil();
fileUtil.delete(path + ".backup");
fileUtil.delete(path + ".properties");
fileUtil.delete(path + ".script");
fileUtil.delete(path + ".data");
fileUtil.delete(path + ".log");
fileUtil.delete(path + ".lck");
fileUtil.delete(path + ".csv");
}
示例5: initParams
import org.hsqldb.lib.FileUtil; //导入方法依赖的package包/类
/**
* Initial external parameters are set here. The size if fixed.
*/
protected void initParams(Database database, String baseFileName,
boolean defrag) {
this.dataFileName = baseFileName + ".data.tmp";
this.database = database;
fa = FileUtil.getFileUtil();
dataFileScale = 64;
cachedRowPadding = dataFileScale;
initialFreePos = dataFileScale;
maxCacheRows = 2048;
maxCacheBytes = maxCacheRows * 1024;
maxDataFileSize = (long) Integer.MAX_VALUE * dataFileScale;
}