Class EndpointDescriptionReader
- java.lang.Object
-
- org.eclipse.ecf.osgi.services.remoteserviceadmin.EndpointDescriptionReader
-
- All Implemented Interfaces:
IEndpointDescriptionReader
public class EndpointDescriptionReader extends Object implements IEndpointDescriptionReader
Default implementation ofIEndpointDescriptionReader.
-
-
Constructor Summary
Constructors Constructor Description EndpointDescriptionReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,Object>mergeWithParsed(Map<String,Object> parsedProperties, Map<String,Object> mergeProperties)EndpointDescription[]readEndpointDescriptions(InputStream input)Read endpoint descriptions from the given input stream.EndpointDescription[]readEndpointDescriptions(InputStream ins, Map<String,Object> overrideProperties)Read endpoint descriptions from the given input stream.
-
-
-
Method Detail
-
readEndpointDescriptions
public EndpointDescription[] readEndpointDescriptions(InputStream input) throws IOException
Description copied from interface:IEndpointDescriptionReaderRead endpoint descriptions from the given input stream. The ins parameter must not benull, and must provide data in the Endpoint Description Extender Format (EDEF) specified in section 122.8 of the OSGi Enterprise Specification.- Specified by:
readEndpointDescriptionsin interfaceIEndpointDescriptionReader- 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
EndpointDescriptioninstance read from the given input stream. - Throws:
IOException- if the inputstream does not have valid data in the EDE format. Note that the implementation of this method may callInputStream.close().
-
readEndpointDescriptions
public EndpointDescription[] readEndpointDescriptions(InputStream ins, Map<String,Object> overrideProperties) throws IOException
Description copied from interface:IEndpointDescriptionReaderRead endpoint descriptions from the given input stream. The ins parameter must not benull, and must provide data in the Endpoint Description Extender Format (EDEF) specified in section 122.8 of the OSGi Enterprise Specification.- Specified by:
readEndpointDescriptionsin interfaceIEndpointDescriptionReader- Parameters:
ins- the input stream to read from. Must be non-null, and must provide data in the format specified the EDEF specification (see link above).overrideProperties- map of property name/values that will override the same-named values from the edef. Ifnullthen no overriding will be done.- Returns:
- array of
EndpointDescriptioninstance read from the given input stream. - Throws:
IOException- if the inputstream does not have valid data in the EDE format. Note that the implementation of this method may callInputStream.close().- Since:
- 4.7
-
-