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() |
long |
getLastModified() |
String |
getPath() |
String |
getPermissions() |
long |
getSize() |
boolean |
isDirectory() |
protected void |
parseLSEntry(String ls) |
void |
setDirectory(boolean isDirectory) |
void |
setLastModified(long lastModified) |
void |
setPath(String path) |
void |
setSize(long size) |
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)
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 String getPermissions()
public String toMListEntry()
public static String toTimeVal(long time)
public static long toTime(String timeVal) throws ParseException
ParseException
Copyright © 2010–2016 UNICORE. All rights reserved.