|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.csource.fastdfs.UploadStream
public class UploadStream
Upload file by stream
Constructor Summary | |
---|---|
UploadStream(java.io.InputStream inputStream,
long fileSize)
constructor |
Method Summary | |
---|---|
int |
send(java.io.OutputStream out)
send file content callback function, be called only once when the file uploaded |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UploadStream(java.io.InputStream inputStream, long fileSize)
inputStream
- input stream for uploadingfileSize
- size of uploaded fileMethod Detail |
---|
public int send(java.io.OutputStream out) throws java.io.IOException
send
in interface UploadCallback
out
- output stream for writing file content
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |