![JAR search and dependency download from the Maven repository](/logo.png)
org.libtorrent4j.alerts.FileRenamedAlert Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of libtorrent4j Show documentation
Show all versions of libtorrent4j Show documentation
A swig Java interface for libtorrent
package org.libtorrent4j.alerts;
import org.libtorrent4j.swig.file_renamed_alert;
import org.libtorrent4j.TorrentHandle;
/**
* This is posted as a response to a {@link TorrentHandle#renameFile(int, String)}, if the rename
* operation succeeds.
*
* @author gubatron
* @author aldenml
*/
public final class FileRenamedAlert extends TorrentAlert {
public FileRenamedAlert(file_renamed_alert alert) {
super(alert);
}
public String newName() {
return alert.new_name();
}
/**
* Refers to the index of the file that was renamed.
*
*
*/
public int index() {
return alert.getIndex();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy