Package org.apache.jena.riot.out
Class NodeFormatterBase
- java.lang.Object
-
- org.apache.jena.riot.out.NodeFormatterBase
-
- All Implemented Interfaces:
NodeFormatter
- Direct Known Subclasses:
NodeFormatterNT
public abstract class NodeFormatterBase extends java.lang.Object implements NodeFormatter
Provide implementations of the operations ofNodeFormatter
in terms of core operations for each node type. N-Triples/N-Quads format.
-
-
Constructor Summary
Constructors Constructor Description NodeFormatterBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
format(org.apache.jena.atlas.io.AWriter w, Node n)
void
formatBNode(org.apache.jena.atlas.io.AWriter w, Node n)
Node is guaranteed to be a blank nodevoid
formatLiteral(org.apache.jena.atlas.io.AWriter w, Node n)
Node is guaranteed to be a literalvoid
formatURI(org.apache.jena.atlas.io.AWriter w, Node n)
Node is guaranteed to be a URI nodevoid
formatVar(org.apache.jena.atlas.io.AWriter w, Node n)
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.jena.riot.out.NodeFormatter
formatBNode, formatLitDT, formatLitLang, formatLitString, formatURI, formatVar
-
-
-
-
Method Detail
-
format
public void format(org.apache.jena.atlas.io.AWriter w, Node n)
- Specified by:
format
in interfaceNodeFormatter
-
formatURI
public void formatURI(org.apache.jena.atlas.io.AWriter w, Node n)
Description copied from interface:NodeFormatter
Node is guaranteed to be a URI node- Specified by:
formatURI
in interfaceNodeFormatter
-
formatBNode
public void formatBNode(org.apache.jena.atlas.io.AWriter w, Node n)
Description copied from interface:NodeFormatter
Node is guaranteed to be a blank node- Specified by:
formatBNode
in interfaceNodeFormatter
-
formatLiteral
public void formatLiteral(org.apache.jena.atlas.io.AWriter w, Node n)
Description copied from interface:NodeFormatter
Node is guaranteed to be a literal- Specified by:
formatLiteral
in interfaceNodeFormatter
-
formatVar
public void formatVar(org.apache.jena.atlas.io.AWriter w, Node n)
- Specified by:
formatVar
in interfaceNodeFormatter
-
-