public class RdfXmlWriter extends GraphHandler
| Constructor and Description |
|---|
RdfXmlWriter(Writer writer)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
endGraph()
Callback method used after the graph is parsed or written.
|
void |
link(Graph source,
Reference typeRef,
Literal target)
Callback method used when a link is parsed or written.
|
void |
link(Graph source,
Reference typeRef,
Reference target)
Callback method used when a link is parsed or written.
|
void |
link(Reference source,
Reference typeRef,
Literal target)
Callback method used when a link is parsed or written.
|
void |
link(Reference source,
Reference typeRef,
Reference target)
Callback method used when a link is parsed or written.
|
void |
startGraph()
Callback method used before the graph is parsed or written.
|
void |
startPrefixMapping(String prefix,
Reference reference)
Callback method used at the start of a Namespace mapping.
|
endPrefixMappingpublic RdfXmlWriter(Writer writer) throws UnsupportedEncodingException
writer - The character writer.UnsupportedEncodingExceptionpublic void endGraph()
throws IOException
GraphHandlerendGraph in class GraphHandlerIOExceptionpublic void link(Graph source, Reference typeRef, Literal target)
GraphHandlerlink in class GraphHandlersource - The source or subject of the link.typeRef - The type reference of the link.target - The target or object of the link.public void link(Graph source, Reference typeRef, Reference target)
GraphHandlerlink in class GraphHandlersource - The source or subject of the link.typeRef - The type reference of the link.target - The target or object of the link.public void link(Reference source, Reference typeRef, Literal target)
GraphHandlerlink in class GraphHandlersource - The source or subject of the link.typeRef - The type reference of the link.target - The target or object of the link.public void link(Reference source, Reference typeRef, Reference target)
GraphHandlerlink in class GraphHandlersource - The source or subject of the link.typeRef - The type reference of the link.target - The target or object of the link.public void startGraph()
throws IOException
GraphHandlerstartGraph in class GraphHandlerIOExceptionpublic void startPrefixMapping(String prefix, Reference reference)
GraphHandlerstartPrefixMapping in class GraphHandlerprefix - The Namespace prefix being declared.reference - The Namespace URI mapped to the prefix.Copyright © 2005–2015. All rights reserved.