Package org.apache.jena.riot.lang
Class ReaderTriX
- java.lang.Object
-
- org.apache.jena.riot.lang.ReaderTriX
-
- All Implemented Interfaces:
ReaderRIOT
public class ReaderTriX extends java.lang.Object implements ReaderRIOT
Read TriX. SeeTriXfor details.- See Also:
TriX,WriterTriX,StreamWriterTriX
-
-
Field Summary
Fields Modifier and Type Field Description static ReaderRIOTFactoryfactory
-
Constructor Summary
Constructors Constructor Description ReaderTriX(ParserProfile profile, ErrorHandler errorHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidread(java.io.InputStream in, java.lang.String baseURI, ContentType ct, StreamRDF output, Context context)Read from an InputStream and output RDF on the StreamRDF.voidread(java.io.Reader reader, java.lang.String baseURI, ContentType ct, StreamRDF output, Context context)Read from an InputStream and output RDF on the StreamRDF.
-
-
-
Field Detail
-
factory
public static ReaderRIOTFactory factory
-
-
Constructor Detail
-
ReaderTriX
public ReaderTriX(ParserProfile profile, ErrorHandler errorHandler)
-
-
Method Detail
-
read
public void read(java.io.InputStream in, java.lang.String baseURI, ContentType ct, StreamRDF output, Context context)Description copied from interface:ReaderRIOTRead from an InputStream and output RDF on the StreamRDF.- Specified by:
readin interfaceReaderRIOT- Parameters:
in- InputStreambaseURI- 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- Destination for the parser output.context- Environment settings.
-
read
public void read(java.io.Reader reader, java.lang.String baseURI, ContentType ct, StreamRDF output, Context context)Description copied from interface:ReaderRIOTRead from an InputStream and output RDF on the StreamRDF.- Specified by:
readin interfaceReaderRIOT- 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- Destination for the parser output.context- Environment settings.
-
-