org.apache.jena.riot
Interface ReaderRIOT

All Known Implementing Classes:
JsonLDReader, ReaderRIOTBase

public interface ReaderRIOT

Interface to parsing processes that takes an input stream and emit items. The "read" operation may be called repeatedly for a single ReaderRIOT, with different arguments. The StreamRDF destination would have to cope with concurrent operation if these read operations overlap.


Method Summary
 ErrorHandler getErrorHandler()
           
 ParserProfile getParserProfile()
          Get the parser profile.
 void read(InputStream in, String baseURI, ContentType ct, StreamRDF output, Context context)
          Read from an InputStream and output RDF on the StreamRDF.
 void read(Reader reader, String baseURI, ContentType ct, StreamRDF output, Context context)
          Read from an InputStream and output RDF on the StreamRDF.
 void setErrorHandler(ErrorHandler errorHandler)
           
 void setParserProfile(ParserProfile profile)
          Set the parser profile.
 

Method Detail

read

void read(InputStream in,
          String baseURI,
          ContentType ct,
          StreamRDF output,
          Context context)
Read from an InputStream and output RDF on the StreamRDF.

Parameters:
in - InputStream
baseURI - Base URI (or null)
ct - Content-Type if available. Routing to the right parser will have already been done so this only useful to get addition Content-Type information or if this ReaderRIOT can handle multiple media types.
output - Destintation for the parser output.
context - Environment settings.

read

void read(Reader reader,
          String baseURI,
          ContentType ct,
          StreamRDF output,
          Context context)
Read from an InputStream and output RDF on the StreamRDF.

Parameters:
reader - Reader. InputStreams are preferred because Reader do not allow RIOT to set the character set.
baseURI - Base URI (or null)
ct - Content-Type if available. Routing to the right parser will have already been done so this only useful to get addition Content-Type information or if this ReaderRIOT can handle multiple media types.
output - Destintation for the parser output.
context - Environment settings.

getErrorHandler

ErrorHandler getErrorHandler()

setErrorHandler

void setErrorHandler(ErrorHandler errorHandler)

getParserProfile

ParserProfile getParserProfile()
Get the parser profile. Not all parser have parser profiles so this may be null


setParserProfile

void setParserProfile(ParserProfile profile)
Set the parser profile. Not all parser have parser profiles so this may be a no-op



Licenced under the Apache License, Version 2.0