Class ReaderRDFXML_StAX_SR

java.lang.Object
org.apache.jena.riot.lang.rdfxml.rrx_stax_sr.ReaderRDFXML_StAX_SR
All Implemented Interfaces:
ReaderRIOT

public class ReaderRDFXML_StAX_SR extends Object implements ReaderRIOT
RDF/XML parser.

This implementation uses StAX via XMLStreamReader.

See Also:
  • Field Details

  • Constructor Details

    • ReaderRDFXML_StAX_SR

      public ReaderRDFXML_StAX_SR(ParserProfile parserProfile)
  • Method Details

    • read

      public void read(InputStream input, 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:
      input - 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 - Destination for the parser output.
      context - Environment settings.
    • 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 - Destination for the parser output.
      context - Environment settings.