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
-
– wrappedStream
Returns 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.
-
– object
Returns the current object on the stream.
-
– context
Returns 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 *)context
Discussion
Returns the context of the current object on the stream.
Declared In
RedlandStream.m
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.
- (BOOL)next
Discussion
- 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.m
object
Returns the current object on the stream.
- (RedlandStatement *)object
Discussion
Returns the current object on the stream.
Declared In
RedlandStream.m
statementEnumerator
- Returns a RedlandStreamEnumerator for the receiver. It is recommended that you use this enumerator interface instead of accessing the stream directly.
- (RedlandStreamEnumerator *)statementEnumerator
Discussion
- 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