Package jflex.io

Class FileUtils

java.lang.Object
jflex.io.FileUtils

public class FileUtils extends Object
  • Constructor Details

    • FileUtils

      private FileUtils()
  • Method Details

    • getRelativePath

      public static String getRelativePath(File rootDirectory, File file)
      Returns the path of file relative to rootDirectory.
    • slashify

      public static String slashify(String path)
      Replaces the \ by a / in the path, because backslash is used as an escape sequence in Java (e.g. is a unicode character.