|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.washington.cs.pl_if.scp.FileInfo
public class FileInfo
Constructor Summary | |
---|---|
FileInfo(File file,
String md5)
Contructor used when getting md5 info of local files |
|
FileInfo(String remotePath,
String md5,
String hostname)
constructur used when downloading |
Method Summary | |
---|---|
FileInfo |
clone()
returns a clone of the current FileInfo |
boolean |
createLocalDirectoryStructure()
create the directory structure needed to access this file |
int |
getCopyCount()
|
String |
getFullRemotePath()
|
String |
getLocalDirectory()
|
File |
getLocalFile()
|
String |
getMd5()
|
String |
getRemoteDir()
|
void |
increaseCopyCount()
|
boolean |
isLocalFile()
|
void |
setLocalFlatFile(File localBaseDir)
|
void |
setLocalHierarchicalFile(File localBaseDir)
|
void |
setRemotePath(File localBasePath,
String remoteBasePath)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FileInfo(File file, String md5) throws IOException
file
- md5
-
IOException
public FileInfo(String remotePath, String md5, String hostname)
remotePath
- md5
- hostname
- Method Detail |
---|
public FileInfo clone()
clone
in class Object
public boolean createLocalDirectoryStructure()
public int getCopyCount()
public String getFullRemotePath()
public String getLocalDirectory() throws IOException
IOException
public File getLocalFile()
public String getMd5()
public String getRemoteDir()
public void increaseCopyCount()
public boolean isLocalFile()
public void setRemotePath(File localBasePath, String remoteBasePath) throws IOException
IOException
public void setLocalFlatFile(File localBaseDir) throws IOException
IOException
public void setLocalHierarchicalFile(File localBaseDir) throws IOException
IOException
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |