Project JXTA

net.jxta.pipe
Interface OutputPipe


public interface OutputPipe

OuputPipe defines the interface for sending messages from a {@see net.jxta.pipe.PipeService}.

Application that want to send messages onto a Pipe must fist get an OutputPipe from the {@see net.jxta.pipe.PipeService}.

Since:
1.0
See Also:
PipeService, InputPipe, Message, PipeAdvertisement,

Method Summary
 void close()
          close the pipe
 void send(Message msg)
          Send a message throught the pipe
 

Method Detail

send

public void send(Message msg)
          throws java.io.IOException
Send a message throught the pipe
Parameters:
msg - is the PipeMessage to be sent.
Throws:
java.io.IOException - output pipe error
Since:
1.0

close

public void close()
close the pipe
Since:
JXTA 1.0

Project JXTA