org.sourcejammer.client
Class UploaderProxy
java.lang.Object
|
+--org.sourcejammer.client.UploaderProxy
- public class UploaderProxy
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UploaderProxy
public UploaderProxy()
UploaderProxy
public UploaderProxy(java.lang.String url)
throws java.net.MalformedURLException
UploaderProxy
public UploaderProxy(java.net.URL url)
setURL
public void setURL(java.lang.String url)
throws java.net.MalformedURLException
setURL
public void setURL(java.net.URL url)
getURL
public java.net.URL getURL()
getFileUploadID
public long getFileUploadID()
throws SourceJammerConnectionException
uploadBytes
public void uploadBytes(byte[] by)
throws SourceJammerConnectionException
- Streams bytes into the FileUploader.
- Parameters:
by
- -- a byte array being streamed in. This is a chunk of a file.
uploadBytes
public void uploadBytes(byte[] by,
boolean eof)
throws SourceJammerConnectionException
- Streams bytes into the FileUploader.
- Parameters:
by
- -- a byte array being streamed in. This is a chunk of a file.eol
- -- if true, tells FileUploader that this is the last chunk
of bytes in the file. FileUploader closes the output stream.