Class BroadleafFileUtils
java.lang.Object
org.broadleafcommerce.common.file.service.BroadleafFileUtils
- Author:
- bpolster, Phillip Verheyden (phillipuniverse)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
addLeadingSlash
(String fileName) Deprecated.static String
addLeadingUnixSlash
(String fileName) Adds the leading slash if needed on the beginning of a filename.static String
appendUnixPaths
(String directory, String fileName) Builds a file path that ensures the directory and filename are separated by a single separator.static String
buildFilePath
(String directory, String fileName) Deprecated.this is now just a pass-through toappendUnixPaths(String, String)
.static String
removeLeadingSlash
(String fileName) Deprecated.this is now just a pass-through to#removeLeadingUnixSlash(String, String)
.static String
removeLeadingUnixSlash
(String fileName) Removes the leading slash if found on the passed in filename.
-
Constructor Details
-
BroadleafFileUtils
public BroadleafFileUtils()
-
-
Method Details
-
buildFilePath
Deprecated.this is now just a pass-through toappendUnixPaths(String, String)
. The original method was a misnomer. -
removeLeadingSlash
Deprecated.this is now just a pass-through to#removeLeadingUnixSlash(String, String)
. The original method was a misnomer. -
addLeadingSlash
Deprecated.this is now just a pass-through to#addLeadingUnixSlash(String, String)
. The original method was a misnomer. -
appendUnixPaths
Builds a file path that ensures the directory and filename are separated by a single separator. This is only suitable for Unix and URL paths. File paths need special care for the differences between systems (/ on Unix and \ on Windows)- Parameters:
directory
-fileName
-
-
removeLeadingUnixSlash
Removes the leading slash if found on the passed in filename.- Parameters:
fileName
-
-
addLeadingUnixSlash
Adds the leading slash if needed on the beginning of a filename.- Parameters:
fileName
-
-
#addLeadingUnixSlash(String, String)
.