public class UploadStream extends Object implements UploadCallback
Constructor and Description |
---|
UploadStream(InputStream inputStream,
long fileSize)
constructor
|
Modifier and Type | Method and Description |
---|---|
int |
send(OutputStream out)
send file content callback function, be called only once when the file uploaded
|
public UploadStream(InputStream inputStream, long fileSize)
inputStream
- input stream for uploadingfileSize
- size of uploaded filepublic int send(OutputStream out) throws IOException
send
in interface UploadCallback
out
- output stream for writing file contentIOException
Copyright © 2018 lodsve. All rights reserved.