Class TurtleJavaccReaderRIOT

java.lang.Object
org.apache.jena.riot.lang.extra.TurtleJavaccReaderRIOT
All Implemented Interfaces:
ReaderRIOT

public class TurtleJavaccReaderRIOT extends Object implements ReaderRIOT
Turtle parser, written using JavaCC.

This is not used normally.

It is slower than the RIOT LangTurtle and has not been optimized for speed. Tokenizing is the bottleneck. It exists so that there is a JavaCC grammar that can be used as a basis for other languages.

  • Constructor Details

    • TurtleJavaccReaderRIOT

      public TurtleJavaccReaderRIOT(ParserProfile profile)
  • Method Details

    • 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 - 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.