|
||||||||||
| 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.RDFXMLWriter
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 | |
RDFXMLWriter()
|
|
| 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 properties for this writer The following properties are supported: PropName propValue Description xmlbase String the value of an xml:base attribute to set on the output. |
void |
write(Model model,
java.io.Writer writer,
java.lang.String base)
Write out an XML serialization of a model. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RDFXMLWriter()
| Method Detail |
public void write(Model model,
java.io.Writer writer,
java.lang.String base)
throws RDFException
write in interface RDFWritermodel - the model to be serializedwriter - the PrintWriter to receive the serializationbase - the base URI for relative URI calculations.
null means use only absolute URI's.
IOException - if an io error occurs
RDFException - if any other exception occurs
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 java.lang.Object setProperty(java.lang.String propName,
java.lang.Object propValue)
throws RDFException
setProperty in interface RDFWriterpropName - the name of the property being setpropValue - the value of the property
null
if no value was set.
RDFException - Throws a generic RDF exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||