
com.netease.cloud.services.nos.transfer.Download Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nos-sdk-java-publiccloud Show documentation
Show all versions of nos-sdk-java-publiccloud Show documentation
nos java sdk to the Central Repository
package com.netease.cloud.services.nos.transfer;
import java.io.IOException;
import com.netease.cloud.services.nos.model.ObjectMetadata;
/**
* Represents an asynchronous download from Nos.
*
* See {@link TransferManager} for more information about creating transfers.
*
*
*/
public interface Download extends Transfer {
/**
* Returns the ObjectMetadata for the object being downloaded.
*
* @return The ObjectMetadata for the object being downloaded.
*/
public ObjectMetadata getObjectMetadata();
/**
* The name of the bucket where the object is being downloaded from.
*
* @return The name of the bucket where the object is being downloaded from.
*/
public String getBucketName();
/**
* The key under which this object was stored in Nos.
*
* @return The key under which this object was stored in Nos.
*/
public String getKey();
/**
* Cancels this download.
*
* @throws IOException
*/
public void abort() throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy