Package jflex.io

Class FileUtils


  • public class FileUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private FileUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getRelativePath​(java.io.File rootDirectory, java.io.File file)
      Returns the path of file relative to rootDirectory.
      static java.lang.String slashify​(java.lang.String path)
      Replaces the \ by a / in the path, because backslash is used as an escape sequence in Java (e.g.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileUtils

        private FileUtils()
    • Method Detail

      • getRelativePath

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

        public static java.lang.String slashify​(java.lang.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.