public final class RemoteFile extends Object
| Constructor and Description |
|---|
RemoteFile(String srcFileUrlStr,
String destPath,
String destFilename,
boolean errorIfNotFound)
Constructor with all arguments.
|
RemoteFile(URL srcFileUrl,
String destPath,
String destFilename,
boolean errorIfNotFound)
Constructor with all arguments.
|
RemoteFile(URL srcFileUrl,
String destPath,
String destFilename,
boolean errorIfNotFound,
String md5Hash,
long length)
Constructor with all arguments.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDestFilename()
Returns the filename at the destination.
|
String |
getDestPath()
Returns the (relative) path at the destination.
|
String |
getDestSlashPath()
Returns the (relative) path at the destination.
|
long |
getLength()
Returns the size of the file.
|
String |
getMd5Hash()
Returns the MD5 hash of the file.
|
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. |
public RemoteFile(String srcFileUrlStr, String destPath, String destFilename, boolean errorIfNotFound) throws 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.MalformedURLException - The srcFileUrl cannot be converted into an
URL.public RemoteFile(URL srcFileUrl, String destPath, 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(URL srcFileUrl, String destPath, String destFilename, boolean errorIfNotFound, 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 lengthpublic final URL getSrcFileUrl()
public final String getDestPath()
public final String getDestSlashPath()
public final String getDestFilename()
public final String getMd5Hash()
null if the hash should be calculated
automatically.public final long getLength()
public final boolean isErrorIfNotFound()
srcFileUrl.true else
false.Copyright © 2013 Future Invent Informationsmanagement GmbH, Hamburg (Germany). All Rights Reserved.