| java.lang.Object com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter
All known Subclasses: com.hp.hpl.jena.xmloutput.impl.Abbreviated, com.hp.hpl.jena.xmloutput.impl.Basic,
BaseXMLWriter | abstract public class BaseXMLWriter implements RDFXMLWriterI(Code) | | This is not part of the public API.
Base class for XML serializers.
All methods with side-effects should be synchronized in this class and its
subclasses. (i. e. XMLWriters assume that the world is not changing around
them while they are writing).
Functionality:
- setProperty etc
- namespace prefixes
- xmlbase
- relative URIs
- encoding issues
- anonymous node presentationall
- errorHandler
author: jjcnee version: Release='$Name: $' Revision='$Revision: 1.67 $' Date='$Date: 2008/01/02 12:09:33 $' |
Method Summary | |
void | addNameSpace(String uri) | String | anonId(Resource r) | protected String | attributeQuoted(String s) | String | attributeTag(String uriref) | String | attributeTag(String uri, String local) | abstract protected void | blockRule(Resource r) | String | endElementTag(String uri, String local) | protected String | endElementTag(String uriref) | final public String | getPrefixFor(String uri) | boolean | isDefaultNamespace(String uri) | public boolean | isPredefinedEntityName(String name) | String | rdfAt(String local) | String | rdfEl(String local) | protected String | relativize(String uri) Answer the form of the URI after relativisation according to the relativeFlags set
by properties. | Resource[] | setBlockRules(Object o) | public synchronized RDFErrorHandler | setErrorHandler(RDFErrorHandler errHandler) Set an error handler.
Parameters: errHandler - The new error handler to be used, or null for the default handler. | public static SimpleLogger | setLogger(SimpleLogger lg) | final public synchronized void | setNsPrefix(String prefix, String ns) | final public synchronized Object | setProperty(String propName, Object propValue) Set the writer property propName to the value obtained from propValue. | Resource[] | setTypes(Resource x) | void | setupMaps() | String | splitTag(String uriref, int type) | String | startElementTag(String uri, String local) | protected String | startElementTag(String uriref) | public static int | str2flags(String pv) | protected String | substitutedAttribute(String s) | String | tag(String namespace, String local, int type, boolean localIsQname) | abstract protected void | unblockAll() | void | workOutNamespaces() | final public void | write(Model model, OutputStream out, String base) Write out an XML serialization of a model. | public synchronized void | write(Model baseModel, Writer out, String base) Serialize Model model to Writer out.
Parameters: out - The Writer to which the serialization should be sent. Parameters: baseModel - The model to be written. Parameters: base - the base URI for relative URI calculations. | abstract protected void | writeBody(Model mdl, PrintWriter pw, String baseUri, boolean inclXMLBase) | String | xmlnsDecl() |
dbg | public static boolean dbg(Code) | | |
factory | static IRIFactory factory(Code) | | |
hexchar | final static char[] hexchar(Code) | | |
predefinedEntityNames | final protected static Pattern predefinedEntityNames(Code) | | |
showDoctypeDeclaration | protected Boolean showDoctypeDeclaration(Code) | | |
BaseXMLWriter | public BaseXMLWriter()(Code) | | |
isDefaultNamespace | boolean isDefaultNamespace(String uri)(Code) | | |
isPredefinedEntityName | public boolean isPredefinedEntityName(String name)(Code) | | |
relativize | protected String relativize(String uri)(Code) | | Answer the form of the URI after relativisation according to the relativeFlags set
by properties. If the flags are 0 or the base URI is null, answer the original URI.
Throw an exception if the URI is "bad" and we demandGoodURIs.
|
setErrorHandler | public synchronized RDFErrorHandler setErrorHandler(RDFErrorHandler errHandler)(Code) | | Set an error handler.
Parameters: errHandler - The new error handler to be used, or null for the default handler. the old error handler |
setupMaps | void setupMaps()(Code) | | |
unblockAll | abstract protected void unblockAll()(Code) | | |
workOutNamespaces | void workOutNamespaces()(Code) | | |
write | final public void write(Model model, OutputStream out, String base)(Code) | | Write out an XML serialization of a model.
Parameters: model - the model to be serialized Parameters: out - the OutputStream to receive the serialization Parameters: base - The URL at which the file will be placed. |
write | public synchronized void write(Model baseModel, Writer out, String base)(Code) | | Serialize Model model to Writer out.
Parameters: out - The Writer to which the serialization should be sent. Parameters: baseModel - The model to be written. Parameters: base - the base URI for relative URI calculations. null means use only absolute URI's. |
|
|