public class FileObjectGetter extends java.lang.Object implements Ds3ClientHelpers.ObjectChannelBuilder
Constructor and Description |
---|
FileObjectGetter(java.nio.file.Path root)
Creates a new FileObjectGetter to retrieve files from a remote DS3 system to the local file system.
|
Modifier and Type | Method and Description |
---|---|
java.nio.channels.SeekableByteChannel |
buildChannel(java.lang.String key)
Returns a channel for the given object key.
|
public FileObjectGetter(java.nio.file.Path root)
root
- The root
directory of the local file system for all files being transferred.public java.nio.channels.SeekableByteChannel buildChannel(java.lang.String key) throws java.io.IOException
Ds3ClientHelpers.ObjectChannelBuilder
buildChannel
in interface Ds3ClientHelpers.ObjectChannelBuilder
java.io.IOException