net.sf.asyncobjects.net.threading
Class TSocket.TInputStreamAdapter

java.lang.Object
  extended by net.sf.asyncobjects.AsyncUnicastServer<AByteInput>
      extended by net.sf.asyncobjects.io.adapters.InputStreamAdapter
          extended by net.sf.asyncobjects.net.threading.TSocket.TInputStreamAdapter
All Implemented Interfaces:
ACloseable, AsyncObject, ExplicitSharing, AByteInput, AInput<BinaryData>
Enclosing class:
TSocket

public class TSocket.TInputStreamAdapter
extends InputStreamAdapter

Adapter for socket's input stream. Note that it uses shutdownInput instead of close operation.

Author:
const

Method Summary
 Promise<Void> close()
          close stream
 
Methods inherited from class net.sf.asyncobjects.io.adapters.InputStreamAdapter
isPushbackSupported, pushback, read
 
Methods inherited from class net.sf.asyncobjects.AsyncUnicastServer
dereference, export, isImmediate, myVat, promise
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.asyncobjects.AsyncObject
dereference, isImmediate
 

Method Detail

close

public Promise<Void> close()
Description copied from class: InputStreamAdapter
close stream

Specified by:
close in interface ACloseable
Overrides:
close in class InputStreamAdapter
Returns:
a promise that resolves when object is closed.
See Also:
InputStreamAdapter.close()


Copyright 2002-2007 Constantine Plotnikov. All Rights Reserved.