Class SubstitutionFileUtil
java.lang.Object
com.sun.enterprise.admin.servermgmt.stringsubs.impl.SubstitutionFileUtil
Utility class for the substitutable files.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe maximum copy byte count. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intGets the maximum file size for which in-memory substitution can be performed.static voidDelete's the given file, if the file is a directory then method will recursively delete the content of it.static FileCreate a directory with the given prefix.
-
Field Details
-
MAX_COPY_BYTE_COUNT
public static final int MAX_COPY_BYTE_COUNTThe maximum copy byte count.- See Also:
-
-
Constructor Details
-
SubstitutionFileUtil
public SubstitutionFileUtil()
-
-
Method Details
-
getInMemorySubstitutionFileSizeInBytes
public static int getInMemorySubstitutionFileSizeInBytes()Gets the maximum file size for which in-memory substitution can be performed.- Returns:
- Max file size in bytes to perform in-memory substitution.
-
setupDir
Create a directory with the given prefix.- Parameters:
prefix- Prefix for the directory name.- Returns:
- An extraction directory.
- Throws:
IOException
-
removeDir
Delete's the given file, if the file is a directory then method will recursively delete the content of it.- Parameters:
file- File to delete.
-