Project JXTA

net.jxta.impl.shell
Class ShellOutputPipe

java.lang.Object
  |
  +--net.jxta.impl.shell.ShellOutputPipe

public class ShellOutputPipe
extends java.lang.Object
implements net.jxta.pipe.OutputPipe, java.lang.Runnable

This class implements the default JXTA Shell OutputPipe. Message received on the pipe are displayed onto the console.


Constructor Summary
ShellOutputPipe(net.jxta.peergroup.PeerGroup group, ShellConsole cons)
           
 
Method Summary
 void close()
           
 net.jxta.endpoint.Message createPipeMessage()
          Allocate a new Message for this pipe
 void run()
           
 void send(net.jxta.endpoint.Message msg)
          send a message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShellOutputPipe

public ShellOutputPipe(net.jxta.peergroup.PeerGroup group,
                       ShellConsole cons)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

createPipeMessage

public net.jxta.endpoint.Message createPipeMessage()
Allocate a new Message for this pipe
Returns:
a Message

send

public void send(net.jxta.endpoint.Message msg)
send a message
Specified by:
send in interface net.jxta.pipe.OutputPipe
Parameters:
msg - is the Message to be sent.

close

public void close()
Specified by:
close in interface net.jxta.pipe.OutputPipe

Project JXTA