|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.hp.hpl.mesa.rdf.jena.common.NTripleWriter
Writes out an XML serialization of a model.
| Field Summary |
| Fields inherited from interface com.hp.hpl.mesa.rdf.jena.model.RDFWriter |
NSPREFIXPROPBASE |
| Constructor Summary | |
NTripleWriter()
|
|
| Method Summary | |
RDFErrorHandler |
setErrorHandler(RDFErrorHandler errHandler)
Set an error handler. |
void |
setNsPrefix(java.lang.String prefix,
java.lang.String ns)
Set the the namespace prefix to be used for a particular namespace. |
java.lang.Object |
setProperty(java.lang.String propName,
java.lang.Object propValue)
Set a property to control the writer's behaviour. |
static void |
write(Model model,
java.io.PrintWriter writer)
|
void |
write(Model model,
java.io.Writer writer,
java.lang.String base)
Serialize Model model to Writer out. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NTripleWriter()
| Method Detail |
public void write(Model model,
java.io.Writer writer,
java.lang.String base)
throws RDFException
RDFWritermodel to Writer out.
- Specified by:
write in interface RDFWriter
- Parameters:
writer - The Writer to which the serialization should
be sent.model - The model to be written.base - the base URI for relative URI calculations.
null means use only absolute URI's.
- Throws:
RDFException - Generic RDF exception.
public java.lang.Object setProperty(java.lang.String propName,
java.lang.Object propValue)
throws RDFException
This writer currently recognises no properties. Invoking this
method always causes an UNKNOWNPROPERTY RDFException
to be raised.
setProperty in interface RDFWriterpropName - The name of the property to be setpropValue - The new value of the property
RDFException - Throws UNKNOWNPROPERTY RDFException if the
property name is not recognised
public void setNsPrefix(java.lang.String prefix,
java.lang.String ns)
RDFWriter
setNsPrefix in interface RDFWriterprefix - the prefix to be usedns - the namespacepublic RDFErrorHandler setErrorHandler(RDFErrorHandler errHandler)
RDFWriter
setErrorHandler in interface RDFWritererrHandler - The new error handler to be used.
public static void write(Model model,
java.io.PrintWriter writer)
throws java.io.IOException,
RDFException
java.io.IOException
RDFException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||