|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gudy.azureus2.plugins.download.savelocation.SaveLocationChange
public class SaveLocationChange
Used by SaveLocationManager
- you create an instance, set the
attributes here and return the value.
Field Summary | |
---|---|
java.io.File |
download_location
The new location to move the download to. |
java.lang.String |
download_name
The new name to give the download. |
java.io.File |
torrent_location
The new location to move the torrent to. |
java.lang.String |
torrent_name
The new name to give the torrent. |
Constructor Summary | |
---|---|
SaveLocationChange()
|
Method Summary | |
---|---|
boolean |
hasDownloadChange()
Returns true if this object indicates a new location for a download. |
boolean |
hasTorrentChange()
Returns true if this object indicates a new location for a torrent. |
boolean |
isDifferentDownloadLocation(java.io.File current_location)
Returns true if this object represents a download location different to the one provided - it will check whether the location represented here is already the same as the one provided. |
boolean |
isDifferentTorrentLocation(java.io.File current_location)
Returns true if this object represents a torrent location different to the one provided - it will check whether the location represented here is already the same as the one provided. |
java.io.File |
normaliseDownloadLocation(java.io.File old_download_location)
Given the location of the existing download, determine the new path to store the download. |
java.io.File |
normaliseDownloadLocation(java.io.File old_download_directory,
java.lang.String old_download_name)
Given the location of the existing download, determine the new path to store the download. |
java.io.File |
normaliseTorrentLocation(java.io.File old_torrent_location)
Given the location of the existing torrent, determine the new path to store the torrent. |
java.io.File |
normaliseTorrentLocation(java.io.File old_torrent_directory,
java.lang.String old_torrent_name)
Given the location of the existing torrent, determine the new path to store the torrent. |
java.lang.String |
toString()
String representation of this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.io.File download_location
public java.lang.String download_name
public java.io.File torrent_location
public java.lang.String torrent_name
Constructor Detail |
---|
public SaveLocationChange()
Method Detail |
---|
public final java.lang.String toString()
toString
in class java.lang.Object
public final java.io.File normaliseTorrentLocation(java.io.File old_torrent_location)
public final java.io.File normaliseTorrentLocation(java.io.File old_torrent_directory, java.lang.String old_torrent_name)
public final java.io.File normaliseDownloadLocation(java.io.File old_download_location)
public final java.io.File normaliseDownloadLocation(java.io.File old_download_directory, java.lang.String old_download_name)
public final boolean hasDownloadChange()
public final boolean hasTorrentChange()
public final boolean isDifferentDownloadLocation(java.io.File current_location)
public final boolean isDifferentTorrentLocation(java.io.File current_location)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |