public interface ODataReader
Modifier and Type | Method and Description |
---|---|
<T> ResWrap<T> |
read(InputStream src,
String format,
Class<T> reference)
Parses a stream into the object type specified by the given reference.
|
ClientEntity |
readEntity(InputStream input,
ContentType contentType)
Parses a stream taking care to de-serializes the first OData entity found.
|
ClientEntitySet |
readEntitySet(InputStream input,
ContentType contentType)
De-Serializes a stream into an OData entity set.
|
ODataError |
readError(InputStream inputStream,
ContentType contentType)
Parses a stream into an OData error.
|
Edm |
readMetadata(InputStream input)
Parses a stream into metadata representation.
|
Edm |
readMetadata(InputStream input,
List<InputStream> termDefinitions)
Parses a stream into metadata representation.
|
Edm |
readMetadata(Map<String,CsdlSchema> xmlSchemas)
Parses a stream into metadata representation, including referenced metadata documents.
|
Edm |
readMetadata(Map<String,CsdlSchema> xmlSchemas,
List<CsdlSchema> termDefinitionSchema)
Parses metadata document along with the document which includes term definitions
|
Edm |
readMetadata(XMLMetadata metadata,
List<InputStream> termDefinitions)
Fetches schema from metadata document and parses the document which includes term definitions
|
ClientProperty |
readProperty(InputStream input,
ContentType contentType)
Parses a stream taking care to de-serialize the first OData entity property found.
|
ClientServiceDocument |
readServiceDocument(InputStream input,
ContentType contentType)
Parses an OData service document.
|
Edm readMetadata(InputStream input)
input
- stream to de-serialize.Edm readMetadata(InputStream input, List<InputStream> termDefinitions)
input
- termDefinitions
- Edm readMetadata(XMLMetadata metadata, List<InputStream> termDefinitions)
metadata
- termDefinitions
- Edm readMetadata(Map<String,CsdlSchema> xmlSchemas)
xmlSchemas
- XML representation of the requested metadata document + any other referenced (via
<edmx:Reference/>) metadata documentEdm readMetadata(Map<String,CsdlSchema> xmlSchemas, List<CsdlSchema> termDefinitionSchema)
xmlSchemas
- termDefinitionSchema
- ClientServiceDocument readServiceDocument(InputStream input, ContentType contentType) throws ODataDeserializerException
input
- stream to de-serialize.contentType
- de-serialize as XML or JSONODataDeserializerException
ClientEntitySet readEntitySet(InputStream input, ContentType contentType) throws ODataDeserializerException
input
- stream to de-serialize.contentType
- de-serialize formatODataDeserializerException
ClientEntity readEntity(InputStream input, ContentType contentType) throws ODataDeserializerException
input
- stream to de-serialize.contentType
- de-serialize formatODataDeserializerException
ClientProperty readProperty(InputStream input, ContentType contentType) throws ODataDeserializerException
input
- stream to de-serialize.contentType
- de-serialize as XML or JSONODataDeserializerException
ODataError readError(InputStream inputStream, ContentType contentType) throws ODataDeserializerException
inputStream
- stream to de-serialize.contentType
- formatODataDeserializerException
<T> ResWrap<T> read(InputStream src, String format, Class<T> reference) throws ODataDeserializerException
T
- expected object type.src
- input stream.format
- formatreference
- reference.ODataDeserializerException
Copyright © 2013–2018 The Apache Software Foundation. All rights reserved.