Class StringUploadSource
java.lang.Object
net.sf.basedb.opengrid.filetransfer.AbstractFileTransfer
net.sf.basedb.opengrid.filetransfer.ByteArrayUploadSource
net.sf.basedb.opengrid.filetransfer.StringUploadSource
- All Implemented Interfaces:
UploadSource
Upload source implementation for uploading the contents
of a string to a file on a remote server.
- Since:
- 1.0
- Author:
- nicklas
-
Constructor Summary
ConstructorDescriptionStringUploadSource
(String name, String data) Create a new source file from a string of data. -
Method Summary
Methods inherited from class net.sf.basedb.opengrid.filetransfer.ByteArrayUploadSource
getInputStream, initMetadata
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
-
Constructor Details
-
StringUploadSource
Create a new source file from a string of data. The string is converted to a byte[] using UTF-8 before the transfer. If another encoding is required use theByteArrayUploadSource
instead.- Parameters:
name
- The name of the "file"data
- The contents of the file, null is not allowed
-