net.jini.discovery
Class OutgoingUnicastResponse

java.lang.Object
  |
  +--net.jini.discovery.OutgoingUnicastResponse

public class OutgoingUnicastResponse
extends java.lang.Object

Encapsulate the details of marshaling a unicast response.

See Also:
IncomingUnicastResponse

Field Summary
protected  int protoVersion
          The current version of the unicast discovery protocol.
 
Constructor Summary
OutgoingUnicastResponse()
           
 
Method Summary
static void marshal(java.io.OutputStream str, ServiceRegistrar reg, java.lang.String[] groups)
          Marshal a unicast response to the given output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

protoVersion

protected int protoVersion
The current version of the unicast discovery protocol.
Constructor Detail

OutgoingUnicastResponse

public OutgoingUnicastResponse()
Method Detail

marshal

public static void marshal(java.io.OutputStream str,
                           ServiceRegistrar reg,
                           java.lang.String[] groups)
                    throws java.io.IOException
Marshal a unicast response to the given output stream. The stream is flushed afterwards.
Parameters:
str - the stream to marshal to
reg - the registrar object to marshal
groups - the groups in which the registrar is currently a member
Throws:
java.io.IOException - a problem occurred during marshaling


Copyright © 1999 Sun Microsystems, Inc. All rights reserved