Hosted by Sourceforge TWiki > DLibrary > RemoteIO ( vs. r1.1) TWiki webs:
Main | TWiki | Know | Sandbox
DLibrary . { Changes | Index | Search | Go }
 <<O>>  Difference Topic RemoteIO (r1.1 - 18 Nov 2003 - RjHonicky)
Added:
>
>

%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


Topic RemoteIO . { View | Diffs | r1.1 | More }
Revision -
Revision r1.1 - 18 Nov 2003 - 18:12 GMT - RjHonicky
Copyright © 1999-2003 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback.