org.apache.jena.riot
Class RDFParserRegistry

java.lang.Object
  extended by org.apache.jena.riot.RDFParserRegistry

public class RDFParserRegistry
extends Object

The registry of languages and parsers. To register a new parser:


Constructor Summary
RDFParserRegistry()
           
 
Method Summary
static ReaderRIOTFactory getFactory(Lang language)
          Return the parser factory for the language, or null if not registered
static void init()
           
static boolean isQuads(Lang lang)
          return true if the language is registered with the quads parser factories
static boolean isTriples(Lang lang)
          return true if the language is registered with the triples parser factories
static void registerLangQuads(Lang lang, ReaderRIOTFactory factory)
          Register a language and it's parser factory.
static void registerLangTriples(Lang lang, ReaderRIOTFactory factory)
          Register a language and it's parser factory.
static void removeRegistration(Lang lang)
          Remove registration
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDFParserRegistry

public RDFParserRegistry()
Method Detail

init

public static void init()

registerLangTriples

public static void registerLangTriples(Lang lang,
                                       ReaderRIOTFactory factory)
Register a language and it's parser factory. To create a Lang object use LangBuilder.


registerLangQuads

public static void registerLangQuads(Lang lang,
                                     ReaderRIOTFactory factory)
Register a language and it's parser factory. To create a Lang object use LangBuilder.


removeRegistration

public static void removeRegistration(Lang lang)
Remove registration


getFactory

public static ReaderRIOTFactory getFactory(Lang language)
Return the parser factory for the language, or null if not registered


isTriples

public static boolean isTriples(Lang lang)
return true if the language is registered with the triples parser factories


isQuads

public static boolean isQuads(Lang lang)
return true if the language is registered with the quads parser factories



Licenced under the Apache License, Version 2.0