public class FixedFormatSerializerImpl extends Object implements FixedFormatSerializer
| Modifier and Type | Field and Description |
|---|---|
static int |
COPY_BUFFER_SIZE |
| Constructor and Description |
|---|
FixedFormatSerializerImpl() |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
asyncResponse(ODataResponse odataResponse)
Serializes a ODataResponse into an async response.
|
InputStream |
batchResponse(List<ODataResponsePart> batchResponses,
String boundary)
Serializes a batch response.
|
InputStream |
binary(byte[] binary)
Writes binary output into an InputStream.
|
protected void |
binary(EntityMediaObject mediaEntity,
OutputStream outputStream) |
protected void |
binary(InputStream inputStream,
OutputStream outputStream) |
void |
binaryIntoStreamed(EntityMediaObject mediaEntity,
OutputStream outputStream) |
void |
binaryIntoStreamed(InputStream inputStream,
OutputStream outputStream) |
InputStream |
count(Integer count)
Writes a count into an InputStream as plain text.
|
SerializerStreamResult |
mediaEntityStreamed(EntityMediaObject mediaEntity)
Writes bytes to an Output stream
|
SerializerStreamResult |
mediaEntityStreamed(InputStream inputStream)
Writes Input stream to an output stream
|
InputStream |
primitiveValue(EdmPrimitiveType type,
Object value,
PrimitiveValueSerializerOptions options)
Writes the raw value of a primitive-type instance into an InputStream.
|
public static final int COPY_BUFFER_SIZE
public InputStream binary(byte[] binary) throws SerializerException
FixedFormatSerializerbinary in interface FixedFormatSerializerbinary - the binary dataSerializerExceptionprotected void binary(EntityMediaObject mediaEntity, OutputStream outputStream) throws SerializerException
SerializerExceptionprotected void binary(InputStream inputStream, OutputStream outputStream) throws SerializerException
SerializerExceptionpublic void binaryIntoStreamed(EntityMediaObject mediaEntity, OutputStream outputStream) throws SerializerException
SerializerExceptionpublic void binaryIntoStreamed(InputStream inputStream, OutputStream outputStream) throws SerializerException
SerializerExceptionpublic SerializerStreamResult mediaEntityStreamed(EntityMediaObject mediaEntity) throws SerializerException
FixedFormatSerializermediaEntityStreamed in interface FixedFormatSerializermediaEntity - bytesSerializerExceptionpublic SerializerStreamResult mediaEntityStreamed(InputStream inputStream) throws SerializerException
FixedFormatSerializermediaEntityStreamed in interface FixedFormatSerializerinputStream - inputStreamSerializerExceptionpublic InputStream count(Integer count) throws SerializerException
FixedFormatSerializercount in interface FixedFormatSerializercount - the countSerializerExceptionpublic InputStream primitiveValue(EdmPrimitiveType type, Object value, PrimitiveValueSerializerOptions options) throws SerializerException
FixedFormatSerializerprimitiveValue in interface FixedFormatSerializertype - the primitive typevalue - the valueoptions - options for the serializerSerializerExceptionpublic InputStream asyncResponse(ODataResponse odataResponse) throws SerializerException
FixedFormatSerializerasyncResponse in interface FixedFormatSerializerodataResponse - the response partsSerializerExceptionpublic InputStream batchResponse(List<ODataResponsePart> batchResponses, String boundary) throws BatchSerializerException
FixedFormatSerializerbatchResponse in interface FixedFormatSerializerbatchResponses - the response partsboundary - the boundary between the partsBatchSerializerExceptionCopyright © 2023. All rights reserved.