com.hp.hpl.jena.rdf.model
Interface RDFWriterF

All Known Subinterfaces:
InfModel, Model, OntModel
All Known Implementing Classes:
com.hp.hpl.jena.rdf.model.impl.ModelCom, MonitorModel

public interface RDFWriterF

An RDFWriter factory inferface.

The factory will create an appropriate writer 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.jena.readers. to the class name.

NOTE: All settings are global in nature


Method Summary
 RDFWriter getWriter()
          return an RDFWriter instance for the default serialization language.
 RDFWriter getWriter(String lang)
          an RDFWriter instance for the specified serialization language.
 String removeWriter(String lang)
          Remove lang from list of writers.
 void resetRDFWriterF()
          Resets the values to the initial condition.
 String setWriterClassName(String lang, String className)
          set the class name for the RDFWriter for a language
 

Method Detail

getWriter

RDFWriter getWriter()
return an RDFWriter instance for the default serialization language.

Returns:
an RDFWriter instance for the default serialization language.

getWriter

RDFWriter getWriter(String lang)
an RDFWriter instance for the specified serialization language.

Parameters:
lang - the serialization language - null selects the default
Returns:
the RDFWriter instance

setWriterClassName

String setWriterClassName(String lang,
                          String className)
set the class name for the RDFWriter for a language

Parameters:
lang - the language for which this class should be used
className - the class name for writers for this language
Returns:
the old class name for this language
Throws:
NullPointerException - if lang or classname is null.

resetRDFWriterF

void resetRDFWriterF()
Resets the values to the initial condition.


removeWriter

String removeWriter(String lang)
                    throws IllegalArgumentException
Remove lang from list of writers. Must be one of the classes that was added using setWriterClassName()

Parameters:
lang - The lang to remove.
Returns:
the old class name for this language
Throws:
IllegalArgumentException - if lang is one of the initial languages


Licenced under the Apache License, Version 2.0