com.hp.hpl.mesa.rdf.jena.model
Interface RDFReaderF

All Known Subinterfaces:
DAMLModel, Model
All Known Implementing Classes:
RDFReaderFImpl

public interface RDFReaderF

An RDFReader factory inferface.

This factory interface is slightly unusual, in that, as well as creating and returning RDFReader's, it also provides methods for creating a reader, invoking a read method on it and then shuting it down.

The factory will create an appropriate reader for the particular serialization language being read. Predefined languages include:

System wide defaults for classes to use as readers for these languages are defined. These defaults may be overwridden by setting a system property with a name of the form com.hp.hpl.mesa.rdf.jena.readers. to the class name.

Version:
$Version$ $Date: 2001/07/04 18:40:35 $
Author:
bwm

Method Summary
 RDFReader getReader()
          return an RDFReader instance for the default serialization language.
 RDFReader getReader(java.lang.String lang)
          return an RDFReader instance for the specified serialization language.
 java.lang.String setReaderClassName(java.lang.String lang, java.lang.String className)
          set the class name for the RDFReader for a langauge
 

Method Detail

getReader

public RDFReader getReader()
                    throws RDFException
return an RDFReader instance for the default serialization language.
Returns:
an RDFReader instance for the default serialization language.
Throws:
RDFException - generic RDF exception

getReader

public RDFReader getReader(java.lang.String lang)
                    throws RDFException
return an RDFReader instance for the specified serialization language.
Parameters:
lang - the serialization langauge - null selects the default
Returns:
the RDFWriter instance
Throws:
RDFException - generic RDF exception

setReaderClassName

public java.lang.String setReaderClassName(java.lang.String lang,
                                           java.lang.String className)
set the class name for the RDFReader for a langauge
Parameters:
lang - the language for which this class should be used
className - the class name for readers for this language
Returns:
the old class name for this language


Copyright 2001 Hewlett-Packard. All Rights Reserved.