public class EndpointDescriptionReader implements IEndpointDescriptionReader {
public org.osgi.service.remoteserviceadmin.EndpointDescription[] readEndpointDescriptions(
InputStream input) throws IOException {
// First create parser
EndpointDescriptionParser parser = new EndpointDescriptionParser();
// Parse input stream
parser.parse(input);
// Get possible endpoint descriptions
List<EndpointDescriptionParser.EndpointDescription> parsedDescriptions = parser
.getEndpointDescriptions();
List<org.osgi.service.remoteserviceadmin.EndpointDescription> results = new ArrayList<org.osgi.service.remoteserviceadmin.EndpointDescription>();
// For each one parsed, get properties and
for (EndpointDescriptionParser.EndpointDescription ed : parsedDescriptions) {
Map parsedProperties = ed.getProperties();