Package org.globus.gsi.testutils
Class FileSetupUtil
- java.lang.Object
-
- org.globus.gsi.testutils.FileSetupUtil
-
public class FileSetupUtil extends java.lang.Object
FILL ME
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
filename
private org.apache.commons.logging.Log
logger
private static int
SLEEP_LENGTH
private java.io.File
tempFile
-
Constructor Summary
Constructors Constructor Description FileSetupUtil(java.lang.String inputFileName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copyFileToTemp()
void
copyFileToTemp(java.io.File dir)
void
deleteFile()
java.lang.String
getAbsoluteFilename()
java.io.File
getTempFile()
java.lang.String
getTempFilename()
java.net.URL
getURL()
void
modifyFile()
-
-
-
Field Detail
-
filename
private java.lang.String filename
-
tempFile
private java.io.File tempFile
-
logger
private org.apache.commons.logging.Log logger
-
SLEEP_LENGTH
private static final int SLEEP_LENGTH
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTempFile
public java.io.File getTempFile()
-
copyFileToTemp
public void copyFileToTemp() throws java.io.IOException
- Throws:
java.io.IOException
-
copyFileToTemp
public void copyFileToTemp(java.io.File dir) throws java.io.IOException
- Throws:
java.io.IOException
-
getAbsoluteFilename
public java.lang.String getAbsoluteFilename()
-
getTempFilename
public java.lang.String getTempFilename()
-
getURL
public java.net.URL getURL()
-
deleteFile
public void deleteFile()
-
modifyFile
public void modifyFile() throws java.lang.InterruptedException, java.io.IOException
- Throws:
java.lang.InterruptedException
java.io.IOException
-
-