Associates the specified stream with the specified key in this
applet context. If the applet context previously contained a mapping
for this key, the old value is replaced.
For security reasons, mapping of streams and keys exists for each
codebase. In other words, applet from one codebase cannot access
the streams created by an applet from a different codebase
Parameters:
- key - key with which the specified value is to be associated.
- stream - stream to be associated with the specified key. If this
parameter is null
, the specified key is removed
in this applet context.
Throws:
- IOException
- if the stream size exceeds a certain
size limit. Size limit is decided by the implementor of this
interface.
Since:
1.4