Package jflex.io
Class FileUtils
- java.lang.Object
-
- jflex.io.FileUtils
-
public class FileUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description privateFileUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetRelativePath(java.io.File rootDirectory, java.io.File file)Returns the path offilerelative torootDirectory.static java.lang.Stringslashify(java.lang.String path)Replaces the\by a/in the path, because backslash is used as an escape sequence in Java (e.g.
-
-
-
Method Detail
-
getRelativePath
public static java.lang.String getRelativePath(java.io.File rootDirectory, java.io.File file)Returns the path offilerelative torootDirectory.
-
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.
-
-