public class JsonDeltaStream extends DeltaStream
A delta stream for decoding OData delta streams with JSON format.
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Close this stream and release all associated resources, without checking first that the end of stream has been reached.
|
void |
close()
Close this stream and release all associated resources, checking first that the end of stream has been reached.
|
static JsonDeltaStream |
fromStream(CharStream stream,
DataContext context)
Convert a character stream containing OData delta JSON encoding into a stream of delta items.
|
boolean |
next()
If this stream has not been
DeltaStream.close and has a next delta item, then advance to the next delta item and return true. |
getCurrent, getDataType, getDeltaItem, getDeltaLink, getEntity, getLink, getNextLink, getReadLink, hasCurrent, hasEntity, hasLink, isClosed, setClosed, setDeltaItem, setDeltaLink, setNextLink, setReadLink, toStringcloneMutable, equals, getTypeCode, hashCodepublic void abort()
Close this stream and release all associated resources, without checking first that the end of stream has been reached.
abort in class DeltaStreampublic void close()
Close this stream and release all associated resources, checking first that the end of stream has been reached.
Can safely be called even if the stream was previously closed.
If a delta link was encountered before the stream was closed, it will be available via the DeltaStream.deltaLink property only after the stream is closed.
If a next link was encountered before the stream was closed, it will be available via the DeltaStream.nextLink property only after the stream is closed.
close in class DeltaStreampublic static JsonDeltaStream fromStream(CharStream stream, DataContext context)
Convert a character stream containing OData delta JSON encoding into a stream of delta items.
stream - Character stream.context - Data context.public boolean next()
If this stream has not been DeltaStream.close and has a next delta item, then advance to the next delta item and return true. Otherwise return false.
next in class DeltaStream