Class FixedFormatDeserializerImpl
java.lang.Object
org.apache.olingo.server.core.deserializer.FixedFormatDeserializerImpl
- All Implemented Interfaces:
FixedFormatDeserializer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]binary(InputStream content) Reads binary data from an InputStream.binaryIntoStream(InputStream content) Reads binary data from an InputStream.parameter(String content, EdmParameter parameter) Reads parameter data (in URI syntax) from a String.parseBatchRequest(InputStream content, String boundary, BatchOptions options) Reads batch data from an InputStream.primitiveValue(InputStream content, EdmProperty property) Reads primitive-type data from an InputStream.
-
Constructor Details
-
FixedFormatDeserializerImpl
public FixedFormatDeserializerImpl()
-
-
Method Details
-
binary
Description copied from interface:FixedFormatDeserializerReads binary data from an InputStream.- Specified by:
binaryin interfaceFixedFormatDeserializer- Parameters:
content- the binary data as input stream- Returns:
- the binary data
- Throws:
DeserializerException
-
binaryIntoStream
Description copied from interface:FixedFormatDeserializerReads binary data from an InputStream.- Specified by:
binaryIntoStreamin interfaceFixedFormatDeserializer- Parameters:
content- contains the InputStream- Returns:
- the EntityMediaObject
- Throws:
DeserializerException
-
primitiveValue
public Object primitiveValue(InputStream content, EdmProperty property) throws DeserializerException Description copied from interface:FixedFormatDeserializerReads primitive-type data from an InputStream.- Specified by:
primitiveValuein interfaceFixedFormatDeserializer- Parameters:
content- the textual value as input streamproperty- EDM property- Throws:
DeserializerException
-
parameter
Description copied from interface:FixedFormatDeserializerReads parameter data (in URI syntax) from a String.- Specified by:
parameterin interfaceFixedFormatDeserializer- Parameters:
content- the textual value as Stringparameter- EDM parameter- Throws:
DeserializerException
-
parseBatchRequest
public List<BatchRequestPart> parseBatchRequest(InputStream content, String boundary, BatchOptions options) throws BatchDeserializerException Description copied from interface:FixedFormatDeserializerReads batch data from an InputStream.- Specified by:
parseBatchRequestin interfaceFixedFormatDeserializer- Parameters:
content- the data as multipart input streamboundary- the boundary between the partsoptions- options for the deserializer- Returns:
- a list of batch-request parts
- Throws:
BatchDeserializerException
-