public interface StreamingServer
| Modifier and Type | Method and Description |
|---|---|
void |
closeDownloadSession(long sid) |
void |
closeUploadSession(String uri) |
DownloadInfo |
createDownloadSession(String uri) |
String |
createUploadSession() |
byte[] |
downloadBytes(long sid,
int size)
Downloads the next 'size' bytes from the given download session.
|
boolean |
hasStream(String uri) |
void |
removeStream(String uri) |
void |
uploadBytes(String uri,
byte[] bytes)
Uploads the given bytes.
|
DownloadInfo createDownloadSession(String uri) throws IOException
IOExceptionvoid closeDownloadSession(long sid)
throws IOException
IOExceptionString createUploadSession() throws IOException
IOExceptionvoid closeUploadSession(String uri) throws IOException
IOExceptionboolean hasStream(String uri)
void removeStream(String uri)
void uploadBytes(String uri, byte[] bytes) throws IOException
uri - the stream uribytes - the bytes to uploadIOExceptionbyte[] downloadBytes(long sid,
int size)
throws IOException
sid - the download sessionsize - the number of bytes to downloadIOExceptionCopyright © 2012 Nuxeo SA. All Rights Reserved.