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
IOException
void closeDownloadSession(long sid) throws IOException
IOException
String createUploadSession() throws IOException
IOException
void closeUploadSession(String uri) throws IOException
IOException
boolean hasStream(String uri)
void removeStream(String uri)
void uploadBytes(String uri, byte[] bytes) throws IOException
uri
- the stream uribytes
- the bytes to uploadIOException
byte[] downloadBytes(long sid, int size) throws IOException
sid
- the download sessionsize
- the number of bytes to downloadIOException
Copyright © 2011 Nuxeo SA. All Rights Reserved.