|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.fuin.kickstart4j.RemoteFile
public final class RemoteFile
Remote file.
| Constructor Summary | |
|---|---|
RemoteFile(java.lang.String srcFileUrlStr,
java.lang.String destPath,
java.lang.String destFilename,
boolean errorIfNotFound)
Constructor with all arguments. |
|
RemoteFile(java.net.URL srcFileUrl,
java.lang.String destPath,
java.lang.String destFilename,
boolean errorIfNotFound)
Constructor with all arguments. |
|
RemoteFile(java.net.URL srcFileUrl,
java.lang.String destPath,
java.lang.String destFilename,
boolean errorIfNotFound,
java.lang.String md5Hash,
long length)
Constructor with all arguments. |
|
| Method Summary | |
|---|---|
java.lang.String |
getDestFilename()
Returns the filename at the destination. |
java.lang.String |
getDestPath()
Returns the (relative) path at the destination. |
java.lang.String |
getDestSlashPath()
Returns the (relative) path at the destination. |
long |
getLength()
Returns the size of the file. |
java.lang.String |
getMd5Hash()
Returns the MD5 hash of the file. |
java.net.URL |
getSrcFileUrl()
Returns the URL of the remote file. |
boolean |
isErrorIfNotFound()
Returns if the copy process will be aborted when this file was not found at the srcFileUrl. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteFile(java.lang.String srcFileUrlStr,
java.lang.String destPath,
java.lang.String destFilename,
boolean errorIfNotFound)
throws java.net.MalformedURLException
srcFileUrlStr - URL of the remote file as String.destPath - The (relative) path at the destination location.destFilename - The filename at the destination location (without path).errorIfNotFound - The copy process will be aborted when this file was not found
at the srcFileUrl.
java.net.MalformedURLException - The srcFileUrl cannot be converted into an
URL.
public RemoteFile(java.net.URL srcFileUrl,
java.lang.String destPath,
java.lang.String destFilename,
boolean errorIfNotFound)
srcFileUrl - URL of the remote file.destPath - The (relative) path at the destination.destFilename - The filename at the destination (without path).errorIfNotFound - The copy process will be aborted when this file was not found
at the srcFileUrl.
public RemoteFile(java.net.URL srcFileUrl,
java.lang.String destPath,
java.lang.String destFilename,
boolean errorIfNotFound,
java.lang.String md5Hash,
long length)
srcFileUrl - URL of the remote file.destPath - The (relative) path at the destination.destFilename - The filename at the destination (without path).errorIfNotFound - The copy process will be aborted when this file was not found
at the srcFileUrl.md5Hash - MD5 hash of the file or null for automatic
calculation. You have to set both values md5Hash
and length to avoid a download of the file for
automatic determination of hash and length.length - Length of the file or zero for automatic calculation. You have
to set both values md5Hash and
length to avoid a download of the file for
automatic determination of hash and length| Method Detail |
|---|
public final java.net.URL getSrcFileUrl()
public final java.lang.String getDestPath()
public final java.lang.String getDestSlashPath()
public final java.lang.String getDestFilename()
public final java.lang.String getMd5Hash()
null if the hash should be calculated
automatically.public final long getLength()
public final boolean isErrorIfNotFound()
srcFileUrl.
true else
false.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||