@Deprecated
public class FileUtil
extends java.lang.Object
Constructor and Description |
---|
FileUtil()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
canExecute(java.io.File path)
Deprecated.
Use
FileUtils.canExecute(File)
instead |
static void |
createSymLink(java.io.File path,
java.lang.String target)
Deprecated.
use
FileUtils.createSymLink(File, String)
instead |
static void |
delete(java.io.File path)
Deprecated.
|
static boolean |
exists(java.io.File path)
Deprecated.
Use
Files.exists(java.nio.file.Path, java.nio.file.LinkOption...)
instead |
static FS.Attributes |
getFileAttributesPosix(FS fs,
java.io.File path)
Deprecated.
Use
FileUtils.getFileAttributesPosix(FS,File)
instead |
static long |
getLength(java.io.File path)
Deprecated.
Use
FileUtils.getLength(File)
instead |
static boolean |
isDirectory(java.io.File path)
Deprecated.
Use
Files.isDirectory(java.nio.file.Path, java.nio.file.LinkOption...)
instead |
static boolean |
isFile(java.io.File path)
Deprecated.
Use
Files.isRegularFile(java.nio.file.Path, java.nio.file.LinkOption...)
instead |
static boolean |
isHidden(java.io.File path)
Deprecated.
Use
Files.isHidden(java.nio.file.Path)
instead |
static boolean |
isSymlink(java.io.File path)
Deprecated.
Use
Files.isSymbolicLink(java.nio.file.Path)
instead |
static long |
lastModified(java.io.File path)
Deprecated.
Use
Files.getLastModifiedTime(java.nio.file.Path, java.nio.file.LinkOption...)
instead |
static java.io.File |
normalize(java.io.File file)
Deprecated.
Use
FileUtils.normalize(File)
instead |
static java.lang.String |
normalize(java.lang.String name)
Deprecated.
Use
FileUtils.normalize(String)
instead |
static java.lang.String |
readSymlink(java.io.File path)
Deprecated.
use
FileUtils.readSymLink(File)
instead |
static void |
setHidden(java.io.File path,
boolean hidden)
Deprecated.
Use
FileUtils.setHidden(File,boolean)
instead |
static void |
setLastModified(java.io.File path,
long time)
Deprecated.
Use
Files.setLastModifiedTime(java.nio.file.Path, java.nio.file.attribute.FileTime)
instead |
@Deprecated public static java.lang.String readSymlink(java.io.File path) throws java.io.IOException
FileUtils.readSymLink(File)
insteadpath
- a File
.java.io.IOException
@Deprecated public static void createSymLink(java.io.File path, java.lang.String target) throws java.io.IOException
FileUtils.createSymLink(File, String)
insteadpath
- path of the symlink to be createdtarget
- target of the symlink to be createdjava.io.IOException
@Deprecated public static boolean isSymlink(java.io.File path)
Files.isSymbolicLink(java.nio.file.Path)
insteadpath
- a File
object.true
if the passed path is a symlink@Deprecated public static long lastModified(java.io.File path) throws java.io.IOException
Files.getLastModifiedTime(java.nio.file.Path, java.nio.file.LinkOption...)
insteadpath
- a File
.java.io.IOException
@Deprecated public static void setLastModified(java.io.File path, long time) throws java.io.IOException
Files.setLastModifiedTime(java.nio.file.Path, java.nio.file.attribute.FileTime)
insteadpath
- a File
.time
- a long.java.io.IOException
@Deprecated public static boolean exists(java.io.File path)
Files.exists(java.nio.file.Path, java.nio.file.LinkOption...)
insteadpath
- a File
.true
if the given path exists@Deprecated public static boolean isHidden(java.io.File path) throws java.io.IOException
Files.isHidden(java.nio.file.Path)
insteadpath
- a File
.true
if the given path is hiddenjava.io.IOException
@Deprecated public static void setHidden(java.io.File path, boolean hidden) throws java.io.IOException
FileUtils.setHidden(File,boolean)
insteadpath
- a File
.hidden
- a boolean.java.io.IOException
@Deprecated public static long getLength(java.io.File path) throws java.io.IOException
FileUtils.getLength(File)
insteadpath
- a File
.java.io.IOException
@Deprecated public static boolean isDirectory(java.io.File path)
Files.isDirectory(java.nio.file.Path, java.nio.file.LinkOption...)
insteadpath
- a File
object.true
if the given file is a directory@Deprecated public static boolean isFile(java.io.File path)
Files.isRegularFile(java.nio.file.Path, java.nio.file.LinkOption...)
insteadpath
- a File
object.true
if the given file is a file@Deprecated public static boolean canExecute(java.io.File path)
FileUtils.canExecute(File)
insteadpath
- a File
object.true
if the given file can be executed@Deprecated public static void delete(java.io.File path) throws java.io.IOException
FileUtils.delete(File)
path
- a File
object.java.io.IOException
@Deprecated public static FS.Attributes getFileAttributesPosix(FS fs, java.io.File path)
FileUtils.getFileAttributesPosix(FS,File)
insteadfs
- a FS
object.path
- a File
object.@Deprecated public static java.io.File normalize(java.io.File file)
FileUtils.normalize(File)
insteadfile
- a File
.File
, otherwise the passed
file@Deprecated public static java.lang.String normalize(java.lang.String name)
FileUtils.normalize(String)
insteadname
- a String
object.