org.eclipse.higgins.idas.registry.discovery
Class StreamDiscovery

java.lang.Object
  extended byorg.eclipse.higgins.idas.registry.discovery.AbstractDiscovery
      extended byorg.eclipse.higgins.idas.registry.discovery.StreamDiscovery
All Implemented Interfaces:
IDiscovery

public class StreamDiscovery
extends AbstractDiscovery

A Discovery implementation that reads an XRDS document from a stream, then closes the stream.

Author:
msabadello at parityinc dot net

Constructor Summary
StreamDiscovery(InputStream stream)
           
 
Method Summary
 org.openxri.xml.XRDS discoverXRDS()
           
 String toString()
           
 
Methods inherited from class org.eclipse.higgins.idas.registry.discovery.AbstractDiscovery
discoverAllServices, discoverDefaultService, discoverService, discoverServices, discoverXRD
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StreamDiscovery

public StreamDiscovery(InputStream stream)
Method Detail

discoverXRDS

public org.openxri.xml.XRDS discoverXRDS()
                                  throws DiscoveryException
Specified by:
discoverXRDS in interface IDiscovery
Specified by:
discoverXRDS in class AbstractDiscovery
Throws:
DiscoveryException

toString

public String toString()