public class UploadClient
extends java.lang.Object
Constructor and Description |
---|
UploadClient(java.lang.String serverUrl)
Constructor for the UploadClient.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] argv)
Command-line invocation.
|
void |
upload(java.lang.String fileName,
java.io.InputStream inputStream,
java.lang.String path)
Upload a file represented as an InputStream to the upload service.
|
public UploadClient(java.lang.String serverUrl)
serverUrl
- The URL for accessing the Upload service.public void upload(java.lang.String fileName, java.io.InputStream inputStream, java.lang.String path) throws java.io.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.java.io.IOException
- if an I/O error occurspublic static void main(java.lang.String[] argv)
argv
- Command-line arguments.Copyright © 2010-2019 Planetary Data System. All Rights Reserved.