org.apache.jena.riot.lang
Class JsonLDReader

java.lang.Object
  extended by org.apache.jena.riot.lang.JsonLDReader
All Implemented Interfaces:
ReaderRIOT

public class JsonLDReader
extends Object
implements ReaderRIOT


Field Summary
static String BLANK_NODE
           
static String IRI
           
static String LITERAL
           
 
Constructor Summary
JsonLDReader()
           
 
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 parserProfile)
          Set the parser profile.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LITERAL

public static String LITERAL

BLANK_NODE

public static String BLANK_NODE

IRI

public static String IRI
Constructor Detail

JsonLDReader

public JsonLDReader()
Method Detail

getErrorHandler

public ErrorHandler getErrorHandler()
Specified by:
getErrorHandler in interface ReaderRIOT

setErrorHandler

public void setErrorHandler(ErrorHandler errorHandler)
Specified by:
setErrorHandler in interface ReaderRIOT

getParserProfile

public ParserProfile getParserProfile()
Description copied from interface: ReaderRIOT
Get the parser profile. Not all parser have parser profiles so this may be null

Specified by:
getParserProfile in interface ReaderRIOT

setParserProfile

public void setParserProfile(ParserProfile parserProfile)
Description copied from interface: ReaderRIOT
Set the parser profile. Not all parser have parser profiles so this may be a no-op

Specified by:
setParserProfile in interface ReaderRIOT

read

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

Specified by:
read in interface ReaderRIOT
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.

read

public void read(InputStream in,
                 String baseURI,
                 ContentType ct,
                 StreamRDF output,
                 Context context)
Description copied from interface: ReaderRIOT
Read from an InputStream and output RDF on the StreamRDF.

Specified by:
read in interface ReaderRIOT
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.


Licenced under the Apache License, Version 2.0