public class FileUtil
extends java.lang.Object
Constructor and Description |
---|
FileUtil() |
Modifier and Type | Method and Description |
---|---|
static java.io.File |
validateTempFile(java.io.File file)
Return the validated File object, if the actual file location is within the system temprorary directory.
|
static java.io.File |
validateTempFile(java.lang.String intendedPath,
java.io.File file)
Return the validated File object, if the actual file location is within the file heirarchy indicated by
intendedPath This method is intended to be used to filter out CWE-22 vulnerabilities.
|
public static java.io.File validateTempFile(java.io.File file) throws java.io.IOException
file
- java.io.IOException
public static java.io.File validateTempFile(java.lang.String intendedPath, java.io.File file) throws java.io.IOException
intendedPath
- file
- java.io.IOException
© Copyright IBM Corp. 2003, 2013. All Rights Reserved.