本文整理汇总了Java中org.alfresco.util.TempFileProvider.getLongLifeTempDir方法的典型用法代码示例。如果您正苦于以下问题:Java TempFileProvider.getLongLifeTempDir方法的具体用法?Java TempFileProvider.getLongLifeTempDir怎么用?Java TempFileProvider.getLongLifeTempDir使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.alfresco.util.TempFileProvider
的用法示例。
在下文中一共展示了TempFileProvider.getLongLifeTempDir方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: LinkNodeFileExtensionHelper
import org.alfresco.util.TempFileProvider; //导入方法依赖的package包/类
private LinkNodeFileExtensionHelper() throws IOException
{
// Open a log file
File tempDir = TempFileProvider.getLongLifeTempDir("patches");
logFile = new File(tempDir, "LinkNodeExtensionPatch.log");
RandomAccessFile outputFile = new RandomAccessFile(logFile, "rw");
channel = outputFile.getChannel();
// Append to the end of the file
channel.position(channel.size());
writeLine("").writeLine("");
writeLine("LinkNodeExtensionPatch executing on " + new Date());
}
示例2: FixBpmPackagesPatchHelper
import org.alfresco.util.TempFileProvider; //导入方法依赖的package包/类
private FixBpmPackagesPatchHelper() throws IOException
{
// put the log file into a long life temp directory
File tempDir = TempFileProvider.getLongLifeTempDir("patches");
logFile = new File(tempDir, "FixBpmPackagesPatch.log");
// open the file for appending
RandomAccessFile outputFile = new RandomAccessFile(logFile, "rw");
channel = outputFile.getChannel();
// move to the end of the file
channel.position(channel.size());
// add a newline and it's ready
writeLine("").writeLine("");
writeLine("FixBpmPackagesPatch executing on " + new Date());
}
示例3: createRequisiteFile
import org.alfresco.util.TempFileProvider; //导入方法依赖的package包/类
private File createRequisiteFile()
{
File tempDir = TempFileProvider.getLongLifeTempDir(FILE_DIRECTORY);
File reqFile = TempFileProvider.createTempFile("TRX-REQ", FILE_SUFFIX, tempDir);
return reqFile;
}