Class BroadleafFileUtils

java.lang.Object
org.broadleafcommerce.common.file.service.BroadleafFileUtils

public class BroadleafFileUtils extends Object
Author:
bpolster, Phillip Verheyden (phillipuniverse)
  • Constructor Details

    • BroadleafFileUtils

      public BroadleafFileUtils()
  • Method Details

    • buildFilePath

      @Deprecated public static String buildFilePath(String directory, String fileName)
      Deprecated.
      this is now just a pass-through to appendUnixPaths(String, String). The original method was a misnomer.
    • removeLeadingSlash

      @Deprecated public static String removeLeadingSlash(String fileName)
      Deprecated.
      this is now just a pass-through to #removeLeadingUnixSlash(String, String). The original method was a misnomer.
    • addLeadingSlash

      @Deprecated public static String addLeadingSlash(String fileName)
      Deprecated.
      this is now just a pass-through to #addLeadingUnixSlash(String, String). The original method was a misnomer.
    • appendUnixPaths

      public static String appendUnixPaths(String directory, String fileName)
      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

      public static String removeLeadingUnixSlash(String fileName)
      Removes the leading slash if found on the passed in filename.
      Parameters:
      fileName -
    • addLeadingUnixSlash

      public static String addLeadingUnixSlash(String fileName)
      Adds the leading slash if needed on the beginning of a filename.
      Parameters:
      fileName -