> > |
%META:TOPICINFO{author="honicky" date="1069179149" format="1.0" version="1.1"}%
%META:TOPICPARENT{name="ProxyStorageInterface"}%
RemoteOutputStreamProxy, RemoteInputStreamProxy
----------------------- ----------------------
+ RemoteOutputStreamProxy(Integer streamKey,
URL serverUrl):RemoteOutputStreamProxy
creates a Serlializable proxy object which can be passed back
from a remote call
- serverURL:URL
- streamKey:Integer
- stream:RemoteOutputStreamServer
if serialize must be implemented, then it will not transfer the
stream object: it will be null when deserialized, so that the
client is forced to reopen the server
o implements the OutputStreamInterface
o caches writes to do them a block at a time
o flush will first write and then call flush remotely
o all operations open the stream on demand
RemoteOutputStreamServer
------------------------
- streamMap: HashMap<OutputStreams>
= addStream(OutputStream stream):RemoteOutputStreamProxy
+ write(Integer streamKey, toWrite:byte[]):void
writes toWrite.length bytes to the remote stream
+ flush(Integer streamKey):void
flushes the remote stream
+ close(Integer streamKey):void
closes the remote stream and removes it from streamMap
RemoteInputStreamServer
-----------------------
- streamMap: HashMap<elements are InputStreams>
= addStream(InputStream stream):RemoteInputStreamProxy
+ read(Integer streamKey, int maxLength):byte[]
reads up to maxLength bytes from the remote stream
+ close(Integer streamKey): void
closes the remote stream
+ mark(Integer streamKey, int readLimit): void
Marks the current position in the remote stream.
+ markSupported(Integer streamKey):boolean
Tests if this input stream supports the mark and reset methods.
+ reset(Integer streamKey): void
Repositions this stream to the position at the time the mark method
was last called on this input stream.
+ skip(Integer streamKey, long):long
Skips over and discards n bytes of data from this input stream.
-- RjHonicky - 18 Nov 2003 |