net.jxta.search.util
Class JxtaPipeUtil

java.lang.Object
  |
  +--net.jxta.search.util.JxtaPipeUtil

public class JxtaPipeUtil
extends java.lang.Object

Aids in pipe creation


Constructor Summary
JxtaPipeUtil()
           
 
Method Summary
static net.jxta.protocol.PipeAdvertisement createPipeAdv(java.io.File pipeAdvFile, java.lang.String pipeName, net.jxta.peergroup.PeerGroup peerGroup)
          Given a file containing a pipe advertisement, returns the a that advertisement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JxtaPipeUtil

public JxtaPipeUtil()
Method Detail

createPipeAdv

public static net.jxta.protocol.PipeAdvertisement createPipeAdv(java.io.File pipeAdvFile,
                                                                java.lang.String pipeName,
                                                                net.jxta.peergroup.PeerGroup peerGroup)
                                                         throws net.jxta.exception.JxtaException,
                                                                java.io.IOException
Given a file containing a pipe advertisement, returns the a that advertisement. If the file does not yet exist, a new pipe advertisement is created and written to the file. This is very useful for always keeping the same pipe adv for your input pipe in your application or service.