RedlandStream Class Reference
| Inherits from | RedlandWrappedObject : NSObject |
| Declared in | RedlandStream.h RedlandStream.m |
Overview
A RedlandStream represents a stream of statements.
Streams are used as return values from parsers and query functions in the Redland library. It is recommended that you use the statementEnumerator function to access the stream, as it provides a more natural Cocoa interface using an NSEnumerator subclass.
Tasks
-
– wrappedStreamReturns the underlying librdf_stream pointer of the receiver.
-
– next- Returns YES if there is a next statement. Note that the return value is the inverse of the corresponding C library function, which returns zero on success.
-
– objectReturns the current object on the stream.
-
– contextReturns the context of the current object on the stream.
-
– statementEnumerator- Returns a RedlandStreamEnumerator for the receiver. It is recommended that you use this enumerator interface instead of accessing the stream directly.
Instance Methods
context
Returns the context of the current object on the stream.
- (RedlandNode *)contextDiscussion
Returns the context of the current object on the stream.
Declared In
RedlandStream.mnext
- Returns YES if there is a next statement. Note that the return value is the inverse of the corresponding C library function, which returns zero on success.
- (BOOL)nextDiscussion
- Returns YES if there is a next statement. Note that the return value is the inverse of the corresponding C library function, which returns zero on success.
Declared In
RedlandStream.mobject
Returns the current object on the stream.
- (RedlandStatement *)objectDiscussion
Returns the current object on the stream.
Declared In
RedlandStream.mstatementEnumerator
- Returns a RedlandStreamEnumerator for the receiver. It is recommended that you use this enumerator interface instead of accessing the stream directly.
- (RedlandStreamEnumerator *)statementEnumeratorDiscussion
- Returns a RedlandStreamEnumerator for the receiver. It is recommended that you use this enumerator interface instead of accessing the stream directly.
Declared In
RedlandStream.m