org.eclipse.ecf.osgi.services.remoteserviceadmin
Class EndpointDescriptionReader

java.lang.Object
  extended by org.eclipse.ecf.osgi.services.remoteserviceadmin.EndpointDescriptionReader
All Implemented Interfaces:
IEndpointDescriptionReader

public class EndpointDescriptionReader
extends java.lang.Object
implements IEndpointDescriptionReader

Default implementation of IEndpointDescriptionReader.


Constructor Summary
EndpointDescriptionReader()
           
 
Method Summary
 org.osgi.service.remoteserviceadmin.EndpointDescription[] readEndpointDescriptions(java.io.InputStream input)
          Read endpoint descriptions from the given input stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EndpointDescriptionReader

public EndpointDescriptionReader()
Method Detail

readEndpointDescriptions

public org.osgi.service.remoteserviceadmin.EndpointDescription[] readEndpointDescriptions(java.io.InputStream input)
                                                                                   throws java.io.IOException
Description copied from interface: IEndpointDescriptionReader
Read endpoint descriptions from the given input stream. The ins parameter must not be null, and must provide data in the Endpoint Description Extender Format (EDEF) specified in section 122.8 of the OSGi Enterprise Specification.

Specified by:
readEndpointDescriptions in interface IEndpointDescriptionReader
Parameters:
input - the input stream to read from. Must be non-null, and must provide data in the format specified the EDEF specification (see link above).
Returns:
array of EndpointDescription instance read from the given input stream.
Throws:
java.io.IOException - if the inputstream does not have valid data in the EDE format. Note that the implementation of this method may call InputStream.close().