public class MultipartWriter extends Object
MimeUploader uploads MIME objects/content to server. The upload
mechanism does not mandates that the underlying connection has to be
different than the one on which XMPP stream is going on; however MIME upload
may interrupt/delay the user packets following the upload. Therefore it is
recommended to use another tcp connection to upload MIME objects on to
server.
Stringflow content model uses a separate (other than the on at which XMPP stream is going on) to transfer files.
MIME upload may take some time (typically the objects are big in size). Therefore uploader may queue up the requests. At this point, SDK use only one connection to transfer mime objects. In future, we may support multiple connections to speedup upload.
| Constructor and Description |
|---|
MultipartWriter(SFCMConnection connection,
OutboundFileTransfer transfer) |
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection() |
void |
write() |
public MultipartWriter(SFCMConnection connection, OutboundFileTransfer transfer)
public Connection getConnection()
public void write()
throws IOException
IOExceptionCopyright © 2019. All rights reserved.