Class BaseFileUploadSource
java.lang.Object
net.sf.basedb.opengrid.filetransfer.AbstractFileTransfer
net.sf.basedb.opengrid.filetransfer.BaseFileUploadSource
- All Implemented Interfaces:
UploadSource
Upload source implementation for uploading a BASE file to
a remote server.
- Since:
- 1.0
- Author:
- nicklas
-
Field Summary
-
Constructor Summary
ConstructorDescriptionBaseFileUploadSource
(File file) Create a new upload source that references the given file in BASE. -
Method Summary
Modifier and TypeMethodDescriptionGet an input stream for reading the resource data.protected void
initMetadata
(FileMetaData metadata) Subclasses that are implementing theUploadSource
interface should override this method and initialize the metadata instance with information about the loca file.Methods inherited from class net.sf.basedb.opengrid.filetransfer.AbstractFileTransfer
getMetadata, getName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.sf.basedb.opengrid.filetransfer.UploadSource
getMetadata, getName
-
Field Details
-
file
-
-
Constructor Details
-
BaseFileUploadSource
Create a new upload source that references the given file in BASE.
-
-
Method Details
-
initMetadata
Description copied from class:AbstractFileTransfer
Subclasses that are implementing theUploadSource
interface should override this method and initialize the metadata instance with information about the loca file. This method is called also forDownloadTarget
implementations but can typically be ignored since the metadata will be overwritten with information from the remote server.- Overrides:
initMetadata
in classAbstractFileTransfer
-
getInputStream
Description copied from interface:UploadSource
Get an input stream for reading the resource data.- Specified by:
getInputStream
in interfaceUploadSource
-