public class ODataWritableContent extends Object implements ODataContent
write method NO exception
will be thrown but if registered the
org.apache.olingo.server.api.ODataContentWriteErrorCallback is called.| Modifier and Type | Class and Description |
|---|---|
static class |
ODataWritableContent.ODataWritableContentBuilder |
static class |
ODataWritableContent.WriteErrorContext |
| Modifier and Type | Method and Description |
|---|---|
static ODataWritableContent.ODataWritableContentBuilder |
with(AbstractEntityCollectionObject entitySet,
EdmEntityType entityType,
ODataSerializer serializer,
ServiceMetadata metadata,
EntityCollectionSerializerOptions options) |
static ODataWritableContent.ODataWritableContentBuilder |
with(EntityMediaObject mediaEntity,
FixedFormatSerializerImpl fixedFormatSerializer) |
static ODataWritableContent.ODataWritableContentBuilder |
with(InputStream inputStream,
FixedFormatSerializerImpl fixedFormatSerializer) |
void |
write(OutputStream stream)
Write the available content into the given
OutputStream. |
void |
write(WritableByteChannel writeChannel)
Write the available content into the given
WritableByteChannel. |
public void write(WritableByteChannel writeChannel)
ODataContentWritableByteChannel.
If during write of the content an exception is thrown this exception will be catched
and the org.apache.olingo.server.api.ODataContentWriteErrorCallback is called (if registered).write in interface ODataContentwriteChannel - channel in which the content is written.public void write(OutputStream stream)
ODataContentOutputStream.
If during write of the content an exception is thrown this exception will be catched
and the org.apache.olingo.server.api.ODataContentWriteErrorCallback is called (if registered).write in interface ODataContentstream - stream in which the content is written.public static ODataWritableContent.ODataWritableContentBuilder with(AbstractEntityCollectionObject entitySet, EdmEntityType entityType, ODataSerializer serializer, ServiceMetadata metadata, EntityCollectionSerializerOptions options)
public static ODataWritableContent.ODataWritableContentBuilder with(EntityMediaObject mediaEntity, FixedFormatSerializerImpl fixedFormatSerializer)
public static ODataWritableContent.ODataWritableContentBuilder with(InputStream inputStream, FixedFormatSerializerImpl fixedFormatSerializer)
Copyright © 2023. All rights reserved.