/** * Read (de-serialize) a property value from <code>content</code> (as {@link InputStream}) in format * <code>text/plain</code> * based on <code>entity data model</code> (given as {@link EdmProperty}) and provide this data as {@link Object}. * * @param edmProperty entity data model for entity property to be read * @param content data in form of an {@link InputStream} which contains the data in format <code>text/plain</code> * @param typeMapping defines the mapping for this <code>edm property</code> to a <code>java class</code> which should * be used * during read of the content. If according <code>edm property</code> can not be read * into given <code>java class</code> an {@link EntityProviderException} is thrown. * Supported mappings are documented in {@link org.apache.olingo.odata2.api.edm.EdmSimpleType}. * @return property value as object * @throws EntityProviderException if reading of data (de-serialization) fails */ public static Object readPropertyValue(final EdmProperty edmProperty, final InputStream content, final Class<?> typeMapping) throws EntityProviderException { return createEntityProvider().readPropertyValue(edmProperty, content, typeMapping); }
/** * Read (de-serialize) a property value from <code>content</code> (as {@link InputStream}) in format * <code>text/plain</code> * based on <code>entity data model</code> (given as {@link EdmProperty}) and provide this data as {@link Object}. * * @param edmProperty entity data model for entity property to be read * @param content data in form of an {@link InputStream} which contains the data in format <code>text/plain</code> * @param typeMapping defines the mapping for this <code>edm property</code> to a <code>java class</code> which should * be used * during read of the content. If according <code>edm property</code> can not be read * into given <code>java class</code> an {@link EntityProviderException} is thrown. * Supported mappings are documented in {@link org.apache.olingo.odata2.api.edm.EdmSimpleType}. * @return property value as object * @throws EntityProviderException if reading of data (de-serialization) fails */ public static Object readPropertyValue(final EdmProperty edmProperty, final InputStream content, final Class<?> typeMapping) throws EntityProviderException { return createEntityProvider().readPropertyValue(edmProperty, content, typeMapping); }
/** * Read (de-serialize) a property value from <code>content</code> (as {@link InputStream}) in format * <code>text/plain</code> * based on <code>entity data model</code> (given as {@link EdmProperty}) and provide this data as {@link Object}. * * @param edmProperty entity data model for entity property to be read * @param content data in form of an {@link InputStream} which contains the data in format <code>text/plain</code> * @param typeMapping defines the mapping for this <code>edm property</code> to a <code>java class</code> which should * be used * during read of the content. If according <code>edm property</code> can not be read * into given <code>java class</code> an {@link EntityProviderException} is thrown. * Supported mappings are documented in {@link org.apache.olingo.odata2.api.edm.EdmSimpleType}. * @return property value as object * @throws EntityProviderException if reading of data (de-serialization) fails */ public static Object readPropertyValue(final EdmProperty edmProperty, final InputStream content, final Class<?> typeMapping) throws EntityProviderException { return createEntityProvider().readPropertyValue(edmProperty, content, typeMapping); }
/** * Read (de-serialize) a property value from <code>content</code> (as {@link InputStream}) in format * <code>text/plain</code> * based on <code>entity data model</code> (given as {@link EdmProperty}) and provide this data as {@link Object}. * * @param edmProperty entity data model for entity property to be read * @param content data in form of an {@link InputStream} which contains the data in format <code>text/plain</code> * @param typeMapping defines the mapping for this <code>edm property</code> to a <code>java class</code> which should * be used * during read of the content. If according <code>edm property</code> can not be read * into given <code>java class</code> an {@link EntityProviderException} is thrown. * Supported mappings are documented in {@link org.apache.olingo.odata2.api.edm.EdmSimpleType}. * @return property value as object * @throws EntityProviderException if reading of data (de-serialization) fails */ public static Object readPropertyValue(final EdmProperty edmProperty, final InputStream content, final Class<?> typeMapping) throws EntityProviderException { return createEntityProvider().readPropertyValue(edmProperty, content, typeMapping); }
/** * Read (de-serialize) a property value from <code>content</code> (as {@link InputStream}) in format * <code>text/plain</code> * based on <code>entity data model</code> (given as {@link EdmProperty}) and provide this data as {@link Object}. * * @param edmProperty entity data model for entity property to be read * @param content data in form of an {@link InputStream} which contains the data in format <code>text/plain</code> * @return property value as object * @throws EntityProviderException if reading of data (de-serialization) fails */ public static Object readPropertyValue(final EdmProperty edmProperty, final InputStream content) throws EntityProviderException { return createEntityProvider().readPropertyValue(edmProperty, content, null); }
/** * Read (de-serialize) a property value from <code>content</code> (as {@link InputStream}) in format * <code>text/plain</code> * based on <code>entity data model</code> (given as {@link EdmProperty}) and provide this data as {@link Object}. * * @param edmProperty entity data model for entity property to be read * @param content data in form of an {@link InputStream} which contains the data in format <code>text/plain</code> * @return property value as object * @throws EntityProviderException if reading of data (de-serialization) fails */ public static Object readPropertyValue(final EdmProperty edmProperty, final InputStream content) throws EntityProviderException { return createEntityProvider().readPropertyValue(edmProperty, content, null); }
/** * Read (de-serialize) a property value from <code>content</code> (as {@link InputStream}) in format * <code>text/plain</code> * based on <code>entity data model</code> (given as {@link EdmProperty}) and provide this data as {@link Object}. * * @param edmProperty entity data model for entity property to be read * @param content data in form of an {@link InputStream} which contains the data in format <code>text/plain</code> * @return property value as object * @throws EntityProviderException if reading of data (de-serialization) fails */ public static Object readPropertyValue(final EdmProperty edmProperty, final InputStream content) throws EntityProviderException { return createEntityProvider().readPropertyValue(edmProperty, content, null); }
/** * Read (de-serialize) a property value from <code>content</code> (as {@link InputStream}) in format * <code>text/plain</code> * based on <code>entity data model</code> (given as {@link EdmProperty}) and provide this data as {@link Object}. * * @param edmProperty entity data model for entity property to be read * @param content data in form of an {@link InputStream} which contains the data in format <code>text/plain</code> * @return property value as object * @throws EntityProviderException if reading of data (de-serialization) fails */ public static Object readPropertyValue(final EdmProperty edmProperty, final InputStream content) throws EntityProviderException { return createEntityProvider().readPropertyValue(edmProperty, content, null); }