public class BaseFileUploadSource extends AbstractFileTransfer implements UploadSource
Constructor and Description |
---|
BaseFileUploadSource(File file)
Create a new upload source that references the
given file in BASE.
|
Modifier and Type | Method and Description |
---|---|
InputStream |
getInputStream()
Get an input stream for reading the resource data.
|
protected void |
initMetadata(FileMetaData metadata)
Subclasses that are implementing the
UploadSource
interface should override this method and initialize the
metadata instance with information about the loca file. |
getMetadata, getName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetadata, getName
private final File file
public BaseFileUploadSource(File file)
protected void initMetadata(FileMetaData metadata)
AbstractFileTransfer
UploadSource
interface should override this method and initialize the
metadata instance with information about the loca file.
This method is called also for DownloadTarget
implementations but can typically be ignored since
the metadata will be overwritten with information from
the remote server.initMetadata
in class AbstractFileTransfer
public InputStream getInputStream()
UploadSource
getInputStream
in interface UploadSource