public class SubstitutionFileUtil extends Object
Modifier and Type | Field and Description |
---|---|
static int |
MAX_COPY_BYTE_COUNT
The maximum copy byte count.
|
Constructor and Description |
---|
SubstitutionFileUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
getInMemorySubstitutionFileSizeInBytes()
Gets the maximum file size for which in-memory substitution can be performed.
|
static void |
removeDir(File file)
Delete's the given file, if the file is a directory then method will
recursively delete the content of it.
|
static File |
setupDir(String prefix)
Create a directory with the given prefix.
|
public static final int MAX_COPY_BYTE_COUNT
public static int getInMemorySubstitutionFileSizeInBytes()
public static File setupDir(String prefix) throws IOException
prefix
- Prefix for the directory name.IOException
public static void removeDir(File file)
file
- File to delete.Copyright © 2018. All rights reserved.