public class UploadClient extends Object
Constructor and Description |
---|
UploadClient(String serverUrl)
Constructor for the UploadClient.
|
public UploadClient(String serverUrl)
serverUrl
- The URL for accessing the Upload service.public void upload(String fileName, InputStream inputStream, String path) throws IOException
fileName
- The name of the file to upload.inputStream
- The input stream for the file to upload.path
- The sub-directory to write the file to on the server.IOException
- if an I/O error occurspublic static void main(String[] argv)
argv
- Command-line arguments.Copyright © 2010–2016 Planetary Data System. All rights reserved.