public class AtomDeltaStreamWriter extends DeltaStreamWriter
A response stream writer for OData ATOM delta responses.
| Constructor and Description |
|---|
AtomDeltaStreamWriter(CharStream stream,
DataQuery query,
EntityValueList result,
DataContext context)
Construct a new Atom delta stream writer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
finish(java.lang.RuntimeException error)
Finish writing stream.
|
void |
start()
Start writing stream.
|
void |
writeEntity(EntityValue entity)
Write a changed entity to this stream.
|
void |
writeLink(ChangedLink link)
Write a changed link to this stream.
|
public AtomDeltaStreamWriter(CharStream stream, DataQuery query, EntityValueList result, DataContext context)
Construct a new Atom delta stream writer.
stream - Character stream to receive streamed response.query - Delta query.result - Result buffer.context - Data context.public void finish(java.lang.RuntimeException error)
Finish writing stream.
finish in class DeltaStreamWritererror - (nullable) Optional error. If null, the stream is valid. If non-null, the stream (received by client) will be intentionally malformed.public void start()
Start writing stream.
start in class DeltaStreamWriterpublic void writeEntity(EntityValue entity)
Write a changed entity to this stream.
writeEntity in class DeltaStreamWriterentity - Changed entity.public void writeLink(ChangedLink link)
Write a changed link to this stream.
writeLink in class DeltaStreamWriterlink - Changed link.