JanosVM v1.0 API

java.lang.isolate
Class IsolateMessage_IOMessage

java.lang.Object
  |
  +--java.lang.isolate.IsolateMessage
        |
        +--java.lang.isolate.IsolateMessage_IOMessage
Direct Known Subclasses:
IsolateMessage_DatagramSocket, IsolateMessage_FileInputStream, IsolateMessage_FileOutputStream, IsolateMessage_ServerSocket, IsolateMessage_Socket

public abstract class IsolateMessage_IOMessage
extends IsolateMessage

All IsolateMessages that wrap IO objects extend this class. The extra interfaces are used by the stdio initialization code in the Isolate constructors.


Fields inherited from class java.lang.isolate.IsolateMessage
EMPTY_MESSAGE
 
Constructor Summary
(package private) IsolateMessage_IOMessage()
           
 
Method Summary
(package private) abstract  IsolateMessage_IOMessage cloneTypeAroundFD(int fd)
          All IOMessages must implement this method.
(package private) abstract  int getFD()
          IO-type messages must implement this for JanosVM stdio redirection, see Isolate.makeStdioSpec().
(package private)  boolean isIOMessage()
          Return true if this message contains an IO object suitable for stdio redirection.
(package private)  boolean isReadable()
          To be suitable for an input stream, an IO message type must override this to return true.
(package private)  boolean isWritable()
          To be suitable for an output stream, an IO message type must override this to return true.
 
Methods inherited from class java.lang.isolate.IsolateMessage
acceptVisitor, getByteArray, getComposite, getDatagramSocket, getFileInputStream, getFileOutputStream, getIsolate, getIsolateEvent, getLink, getSerializable, getServerSocket, getSocket, getString, newByteArrayMessage, newCompositeMessage, newDatagramSocketMessage, newFileInputStreamMessage, newFileOutputStreamMessage, newIsolateEventMessage, newIsolateMessage, newLinkMessage, newSerializableMessage, newServerSocketMessage, newSocketMessage, newStringMessage, pretranslate, toString, translate, typeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait, wait0
 

Constructor Detail

IsolateMessage_IOMessage

IsolateMessage_IOMessage()
Method Detail

isIOMessage

boolean isIOMessage()
Description copied from class: IsolateMessage
Return true if this message contains an IO object suitable for stdio redirection.
Overrides:
isIOMessage in class IsolateMessage

isReadable

boolean isReadable()
To be suitable for an input stream, an IO message type must override this to return true. (Defaults to false).

isWritable

boolean isWritable()
To be suitable for an output stream, an IO message type must override this to return true. (Defaults to false).

cloneTypeAroundFD

abstract IsolateMessage_IOMessage cloneTypeAroundFD(int fd)
                                             throws java.io.IOException
All IOMessages must implement this method. They must return a new instance of themselves but wrapping the given fd.

getFD

abstract int getFD()
            throws java.io.IOException
IO-type messages must implement this for JanosVM stdio redirection, see Isolate.makeStdioSpec().

JanosVM v1.0 API

This documentation is Copyright (C) 2000-2003 The University of Utah. All Rights Reserved. See the documentation license for distribution terms and restrictions.
Documentation, software, and mailing lists for the JanosVM can be found at the Janos Project web page: http://www.cs.utah.edu/flux/janos/
Generated on Feb 13, 2003