public abstract class RiotParsePuller<T> extends Object implements Iterator<T>, Closeable, LangRIOT
BlockingQueue
. You must call parse()
in
order to start the background thread parsing the InputStream. You then use the iterator methods
to retrieve the statements.
Note: You can avoid using this class if you are dealing with N-Triples or N-Quads, because RIOT
provides pull interfaces directly for those parsers.Constructor and Description |
---|
RiotParsePuller(InputStream in,
Lang lang,
String baseIRI) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Lang |
getLang() |
ParserProfile |
getProfile() |
boolean |
hasNext() |
T |
next() |
void |
parse()
Starts the background thread parsing the InputStream.
|
void |
remove() |
void |
setProfile(ParserProfile profile) |
public RiotParsePuller(InputStream in, Lang lang, String baseIRI)
public ParserProfile getProfile()
getProfile
in interface LangRIOT
public void setProfile(ParserProfile profile)
setProfile
in interface LangRIOT
public void parse()
Licenced under the Apache License, Version 2.0