Package jflex.io
Class FileUtils
- java.lang.Object
-
- jflex.io.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 offile
relative torootDirectory
.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.
-
-
-
Method Detail
-
getRelativePath
public static java.lang.String getRelativePath(java.io.File rootDirectory, java.io.File file)
Returns the path offile
relative 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.
-
-