/** * Read (de-serialize) a data feed from <code>content</code> (as {@link InputStream}) in specified format (given as * <code>contentType</code>) * based on <code>entity data model</code> (given as {@link EdmEntitySet}) and provide this data as {@link ODataEntry} * . * * @param contentType format of content in the given input stream. * @param entitySet entity data model for entity set to be read * @param content feed data in form of an {@link InputStream} which contains the data in specified format * @param properties additional properties necessary for reading content from {@link InputStream} into {@link Map}. * Must not be null. * @return an {@link ODataFeed} object * @throws EntityProviderException if reading of data (de-serialization) fails */ public static ODataFeed readFeed(final String contentType, final EdmEntitySet entitySet, final InputStream content, final EntityProviderReadProperties properties) throws EntityProviderException { return createEntityProvider().readFeed(contentType, entitySet, content, properties); }
/** * Read (de-serialize) a data feed from <code>content</code> (as {@link InputStream}) in specified format (given as * <code>contentType</code>) * based on <code>entity data model</code> (given as {@link EdmEntitySet}) and provide this data as {@link ODataEntry} * . * * @param contentType format of content in the given input stream. * @param entitySet entity data model for entity set to be read * @param content feed data in form of an {@link InputStream} which contains the data in specified format * @param properties additional properties necessary for reading content from {@link InputStream} into {@link Map}. * Must not be null. * @return an {@link ODataFeed} object * @throws EntityProviderException if reading of data (de-serialization) fails */ public static ODataFeed readFeed(final String contentType, final EdmEntitySet entitySet, final InputStream content, final EntityProviderReadProperties properties) throws EntityProviderException { return createEntityProvider().readFeed(contentType, entitySet, content, properties); }
/** * Read (de-serialize) a data feed from <code>content</code> (as {@link InputStream}) in specified format (given as * <code>contentType</code>) * based on <code>entity data model</code> (given as {@link EdmEntitySet}) and provide this data as {@link ODataEntry} * . * * @param contentType format of content in the given input stream. * @param entitySet entity data model for entity set to be read * @param content feed data in form of an {@link InputStream} which contains the data in specified format * @param properties additional properties necessary for reading content from {@link InputStream} into {@link Map}. * Must not be null. * @return an {@link ODataFeed} object * @throws EntityProviderException if reading of data (de-serialization) fails */ public static ODataFeed readFeed(final String contentType, final EdmEntitySet entitySet, final InputStream content, final EntityProviderReadProperties properties) throws EntityProviderException { return createEntityProvider().readFeed(contentType, entitySet, content, properties); }
/** * Read (de-serialize) a data feed from <code>content</code> (as {@link InputStream}) in specified format (given as * <code>contentType</code>) * based on <code>entity data model</code> (given as {@link EdmEntitySet}) and provide this data as {@link ODataEntry} * . * * @param contentType format of content in the given input stream. * @param entitySet entity data model for entity set to be read * @param content feed data in form of an {@link InputStream} which contains the data in specified format * @param properties additional properties necessary for reading content from {@link InputStream} into {@link Map}. * Must not be null. * @return an {@link ODataFeed} object * @throws EntityProviderException if reading of data (de-serialization) fails */ public static ODataFeed readFeed(final String contentType, final EdmEntitySet entitySet, final InputStream content, final EntityProviderReadProperties properties) throws EntityProviderException { return createEntityProvider().readFeed(contentType, entitySet, content, properties); }