public interface FileInfo
The information about a file.
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists()
Returns the flag if the file exists.
|
String |
getAbsolutePath()
Returns the absolute path.
|
File |
getFile()
Returns the file.
|
long |
getLength()
Returns the length of the file in bytes.
|
boolean |
isDirectory()
Returns the flag if the file is a directory.
|
boolean |
isFile()
Returns the flag if the file is a regular file.
|
File getFile()
Returns the file.
String getAbsolutePath()
Returns the absolute path.
boolean exists()
Returns the flag if the file exists.
true, if the file exists,
false otherwise.boolean isFile()
Returns the flag if the file is a regular file.
true, if the file is a regular file,
false otherwise.boolean isDirectory()
Returns the flag if the file is a directory.
true, if the file is a directory,
false otherwise.long getLength()
Returns the length of the file in bytes.
Copyright © 2015–2019. All rights reserved.