org.jboss.system.server.profileservice.repository.clustered.local.file
Class FileUtil

java.lang.Object
  extended by org.jboss.system.server.profileservice.repository.clustered.local.file.FileUtil

public class FileUtil
extends Object

Utility methods related to filesystem operations.

Version:
$Revision: $
Author:
Brian Stansberry

Method Summary
static File createTempDir(String tmpDirName)
           
static File createTempFile(File tmpDir, String partitionName)
           
static File createTempFile(String tmpDirName, String partitionName)
           
static File getFileForItem(URI rootURI, RepositoryItemMetadata item)
           
static void localMove(File source, File destination, long modifiedTime)
           
static void safeCloseStream(OutputStream os, Object id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

localMove

public static void localMove(File source,
                             File destination,
                             long modifiedTime)
                      throws IOException
Throws:
IOException

getFileForItem

public static File getFileForItem(URI rootURI,
                                  RepositoryItemMetadata item)

createTempFile

public static File createTempFile(String tmpDirName,
                                  String partitionName)
                           throws IOException
Throws:
IOException

createTempFile

public static File createTempFile(File tmpDir,
                                  String partitionName)
                           throws IOException
Throws:
IOException

createTempDir

public static File createTempDir(String tmpDirName)
                          throws IOException
Throws:
IOException

safeCloseStream

public static void safeCloseStream(OutputStream os,
                                   Object id)


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.