public class AtomDeltaStream extends DeltaStream
A delta stream for decoding OData delta streams with ATOM 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 AtomDeltaStream |
fromStream(CharStream stream,
DataContext context)
Convert a character stream containing OData delta ATOM 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, toString
cloneMutable, equals, getTypeCode, hashCode
public void abort()
Close this stream and release all associated resources, without checking first that the end of stream has been reached.
abort
in class DeltaStream
public 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 DeltaStream
public static AtomDeltaStream fromStream(CharStream stream, DataContext context)
Convert a character stream containing OData delta ATOM 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