org.openjena.riot.out
Class NodeFormatterBase

java.lang.Object
  extended by org.openjena.riot.out.NodeFormatterBase
All Implemented Interfaces:
NodeFormatter
Direct Known Subclasses:
NodeFormatterNT

public abstract class NodeFormatterBase
extends Object
implements NodeFormatter

Provide implementations of the operations of NodeFormatter in terms of core operations for each node type.


Constructor Summary
NodeFormatterBase()
           
 
Method Summary
 void format(Writer w, com.hp.hpl.jena.graph.Node n)
           
 void formatBNode(Writer w, com.hp.hpl.jena.graph.Node n)
          Node is guaranteed to be a blank node
 void formatLiteral(Writer w, com.hp.hpl.jena.graph.Node n)
          Node is guaranteed to be a literal
 void formatURI(Writer w, com.hp.hpl.jena.graph.Node n)
          Node is guaranteed to be a URI node
 void formatVar(Writer w, com.hp.hpl.jena.graph.Node n)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openjena.riot.out.NodeFormatter
formatBNode, formatLitDT, formatLitLang, formatLitString, formatURI, formatVar
 

Constructor Detail

NodeFormatterBase

public NodeFormatterBase()
Method Detail

format

public void format(Writer w,
                   com.hp.hpl.jena.graph.Node n)
Specified by:
format in interface NodeFormatter

formatURI

public void formatURI(Writer w,
                      com.hp.hpl.jena.graph.Node n)
Description copied from interface: NodeFormatter
Node is guaranteed to be a URI node

Specified by:
formatURI in interface NodeFormatter

formatBNode

public void formatBNode(Writer w,
                        com.hp.hpl.jena.graph.Node n)
Description copied from interface: NodeFormatter
Node is guaranteed to be a blank node

Specified by:
formatBNode in interface NodeFormatter

formatLiteral

public void formatLiteral(Writer w,
                          com.hp.hpl.jena.graph.Node n)
Description copied from interface: NodeFormatter
Node is guaranteed to be a literal

Specified by:
formatLiteral in interface NodeFormatter

formatVar

public void formatVar(Writer w,
                      com.hp.hpl.jena.graph.Node n)
Specified by:
formatVar in interface NodeFormatter


Licenced under the Apache License, Version 2.0