Interface ODataDeserializer
- All Known Subinterfaces:
ClientODataDeserializer
public interface ODataDeserializer
Interface for de-serialization.
-
Method Summary
Modifier and TypeMethodDescriptionResWrap<org.apache.olingo.commons.api.data.Entity>toEntity(InputStream input) Gets an entity object from the given InputStream.ResWrap<org.apache.olingo.commons.api.data.EntityCollection>toEntitySet(InputStream input) Gets an entity set object from the given InputStream.org.apache.olingo.commons.api.ex.ODataErrortoError(InputStream input) Gets the ODataError object represented by the given InputStream.ResWrap<org.apache.olingo.commons.api.data.Property>toProperty(InputStream input) Gets a property object from the given InputStream.
-
Method Details
-
toEntitySet
ResWrap<org.apache.olingo.commons.api.data.EntityCollection> toEntitySet(InputStream input) throws ODataDeserializerException Gets an entity set object from the given InputStream.- Parameters:
input- stream to be de-serialized.- Returns:
EntityCollectioninstance.- Throws:
ODataDeserializerException
-
toEntity
ResWrap<org.apache.olingo.commons.api.data.Entity> toEntity(InputStream input) throws ODataDeserializerException Gets an entity object from the given InputStream.- Parameters:
input- stream to be de-serialized.- Returns:
Entityinstance.- Throws:
ODataDeserializerException
-
toProperty
ResWrap<org.apache.olingo.commons.api.data.Property> toProperty(InputStream input) throws ODataDeserializerException Gets a property object from the given InputStream.- Parameters:
input- stream to be de-serialized.- Returns:
- Property instance.
- Throws:
ODataDeserializerException
-
toError
org.apache.olingo.commons.api.ex.ODataError toError(InputStream input) throws ODataDeserializerException Gets the ODataError object represented by the given InputStream.- Parameters:
input- stream to be parsed and de-serialized.- Returns:
- parsed ODataError object represented by the given InputStream
- Throws:
ODataDeserializerException
-