当前位置: 首页>>代码示例>>Java>>正文


Java方法org.alfresco.util.TempFileProvider.getLongLifeTempDir代码示例

以下是Java方法org.alfresco.util.TempFileProvider.getLongLifeTempDir的代码示例。如果您正苦于以下问题:Java TempFileProvider.getLongLifeTempDir方法的具体用法?Java TempFileProvider.getLongLifeTempDir怎么用?Java TempFileProvider.getLongLifeTempDir使用的例子?那么恭喜您, 这里整理的方法代码示例例程将为您提供帮助。您也可以进一步了解该方法所在org.alfresco.util.TempFileProvider的用法示例。

本文一共展示了TempFileProvider.getLongLifeTempDir的3个开源代码实例,这些例子默认根据受欢迎程度排序。您可以为喜欢的代码打CALL点赞,您的评价将有助于我们的系统推荐出更棒的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());
}
 
开发者ID:Alfresco,项目:alfresco-repository,完整代码来源:LinkNodeFileExtensionPatch.java


示例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());
}
 
开发者ID:Alfresco,项目:alfresco-repository,完整代码来源:FixBpmPackagesPatch.java


示例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;
}
 
开发者ID:Alfresco,项目:alfresco-repository,完整代码来源:TransferServiceImpl2.java



注:本文示例均筛选自Github平台上各路大神开发的开源项目,代码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。