Home | Trees | Indices | Help |
|
---|
|
object --+ | IStreamVariable
IStreamVariable is a special kind of variable whose value is streamed
to an StringIO
provided by the getOutputStream method. E.g. in web terminals IStreamVariable can be used to send large files from
browsers to the server without consuming large amounts of memory.
Note, writing to the OutputStream
is not
synchronized by the terminal (to avoid stalls in other operations when
eg. streaming to a slow network service or file system). If UI is changed
as a side effect of writing to the output stream, developer must handle
synchronization manually.
Version: 1.1.2
See Also:
PaintTarget.addVariable
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
Invoked by the terminal when a new upload arrives, after streamingStarted method has been called. The terminal implementation will write the streamed variable to the returned output stream.
|
Whether the onProgress method should be called during the upload. onProgress is called in a synchronized block when the
content is being received. This is potentially bit slow, so we are
calling that method only if requested. The value is requested after the
See Also: onProgress |
If this method returns true while the content is being streamed the Terminal to stop receiving current upload. Note, the usage of this method is not synchronized over the Application instance by the terminal like other methods. The implementation should only return a boolean field and especially not modify UI or implement a synchronization by itself.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Apr 20 16:01:22 2013 | http://epydoc.sourceforge.net |