public interface DownloadTarget
AbstractSession.downloadFile(String, DownloadTarget)
which will call getMetadata()
first and populate this
with as much information as it can get from the remote server.
Then, the getOutputStream()
is called and the file
data is written to the returned stream.Modifier and Type | Method and Description |
---|---|
FileMetaData |
getMetadata()
Get a metadata instance for collecting information
about the remote file.
|
String |
getName()
The name of the local resource.
|
OutputStream |
getOutputStream()
Get an ouput stream for writing the file data to the
local resource.
|
String getName()
OutputStream getOutputStream() throws IOException
IOException
FileMetaData getMetadata()