public abstract class BaseXMLWriter extends Object implements RDFXMLWriterI
Modifier and Type | Field and Description |
---|---|
static boolean |
dbg |
_NotInteresting
NSPREFIXPROPBASE
Constructor and Description |
---|
BaseXMLWriter() |
Modifier and Type | Method and Description |
---|---|
String |
getPrefixFor(String uri) |
boolean |
isPredefinedEntityName(String name) |
RDFErrorHandler |
setErrorHandler(RDFErrorHandler errHandler)
Set an error handler.
|
static SimpleLogger |
setLogger(SimpleLogger lg) |
void |
setNsPrefix(String prefix,
String ns) |
Object |
setProperty(String propName,
Object propValue)
Set the writer property propName to the value obtained from propValue.
|
static int |
str2flags(String pv) |
void |
write(Model model,
OutputStream out,
String base)
Write out an XML serialization of a model.
|
void |
write(Model model,
Writer out,
String base)
Serialize Model
model to Writer out. |
public static SimpleLogger setLogger(SimpleLogger lg)
public final void write(Model model, OutputStream out, String base)
public boolean isPredefinedEntityName(String name)
public RDFErrorHandler setErrorHandler(RDFErrorHandler errHandler)
setErrorHandler
in interface RDFWriter
errHandler
- The new error handler to be used, or null for the default handler.public final Object setProperty(String propName, Object propValue)
setProperty
in interface RDFWriter
setProperty
in interface RDFXMLWriterI
propName
- One of "xmlBase", "longId", "allowBadURIs",
"relativeURIs","showXMLDeclaration", "tab", "attributeQuoteChar",
"blockRules", "prettyTypes", "showDoctypeDeclaration", "width"propValue
- A String, Boolean, Integer, Resource[] as appropriate.null
if no value was set.RDFWriter.setProperty(java.lang.String, java.lang.Object)
public static int str2flags(String pv)
Licenced under the Apache License, Version 2.0