public class FileInfo extends Object
Constructor and Description |
---|
FileInfo() |
FileInfo(File file)
Generates FileInfo for the given file.
|
FileInfo(String lsEntry) |
Modifier and Type | Method and Description |
---|---|
boolean |
exists() |
String |
getIsDirectory() |
long |
getLastModified() |
String |
getPath() |
String |
getPermissions()
Deprecated.
|
long |
getSize() |
String |
getUnixPermissions(String empty) |
boolean |
isDirectory() |
boolean |
isExecutable() |
boolean |
isReadable() |
boolean |
isWritable() |
protected void |
parseLSEntry(String ls) |
protected void |
parsePermissions(String perms) |
void |
setDirectory(boolean isDirectory) |
void |
setExecutable(boolean executable) |
void |
setLastModified(long lastModified) |
void |
setPath(String path) |
void |
setReadable(boolean readable) |
void |
setSize(long size) |
void |
setWritable(boolean writable) |
String |
toMListEntry() |
String |
toString() |
static long |
toTime(String timeVal) |
static String |
toTimeVal(long time) |
public FileInfo()
public FileInfo(String lsEntry)
public FileInfo(File file)
file
- - the file to get info forprotected void parseLSEntry(String ls)
protected void parsePermissions(String perms)
public boolean exists()
public boolean isDirectory()
public void setDirectory(boolean isDirectory)
public String getPath()
public void setPath(String path)
public long getLastModified()
public void setLastModified(long lastModified)
public long getSize()
public void setSize(long size)
public boolean isReadable()
public void setReadable(boolean readable)
public boolean isWritable()
public void setWritable(boolean writable)
public boolean isExecutable()
public void setExecutable(boolean executable)
public String getIsDirectory()
@Deprecated public String getPermissions()
public String toMListEntry()
public static String toTimeVal(long time)
public static long toTime(String timeVal) throws ParseException
ParseException
Copyright © 2010–2018 UNICORE. All rights reserved.