Class StringUploadSource

All Implemented Interfaces:
UploadSource

public class StringUploadSource extends ByteArrayUploadSource
Upload source implementation for uploading the contents of a string to a file on a remote server.
Since:
1.0
Author:
nicklas
  • Constructor Details

    • StringUploadSource

      public StringUploadSource(String name, String data)
      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 the ByteArrayUploadSource instead.
      Parameters:
      name - The name of the "file"
      data - The contents of the file, null is not allowed