java.lang.Object
org.apache.jena.riot.out.NodeFormatterBase
- All Implemented Interfaces:
NodeFormatter
- Direct Known Subclasses:
NodeFormatterNT
Provide implementations of the operations of
NodeFormatter in terms
of core operations for each node type. N-Triples/N-Quads format.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidformat(org.apache.jena.atlas.io.AWriter w, org.apache.jena.graph.Node n) voidformatBNode(org.apache.jena.atlas.io.AWriter w, org.apache.jena.graph.Node n) Node is guaranteed to be a blank nodevoidformatLiteral(org.apache.jena.atlas.io.AWriter w, org.apache.jena.graph.Node n) Node is guaranteed to be a literalvoidformatURI(org.apache.jena.atlas.io.AWriter w, org.apache.jena.graph.Node n) Node is guaranteed to be a URI nodevoidformatVar(org.apache.jena.atlas.io.AWriter w, org.apache.jena.graph.Node n) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jena.riot.out.NodeFormatter
formatBNode, formatLitDT, formatLitLang, formatLitLangDir, formatLitString, formatURI, formatVar
-
Constructor Details
-
NodeFormatterBase
public NodeFormatterBase()
-
-
Method Details
-
format
public void format(org.apache.jena.atlas.io.AWriter w, org.apache.jena.graph.Node n) - Specified by:
formatin interfaceNodeFormatter
-
formatURI
public void formatURI(org.apache.jena.atlas.io.AWriter w, org.apache.jena.graph.Node n) Description copied from interface:NodeFormatterNode is guaranteed to be a URI node- Specified by:
formatURIin interfaceNodeFormatter
-
formatBNode
public void formatBNode(org.apache.jena.atlas.io.AWriter w, org.apache.jena.graph.Node n) Description copied from interface:NodeFormatterNode is guaranteed to be a blank node- Specified by:
formatBNodein interfaceNodeFormatter
-
formatLiteral
public void formatLiteral(org.apache.jena.atlas.io.AWriter w, org.apache.jena.graph.Node n) Description copied from interface:NodeFormatterNode is guaranteed to be a literal- Specified by:
formatLiteralin interfaceNodeFormatter
-
formatVar
public void formatVar(org.apache.jena.atlas.io.AWriter w, org.apache.jena.graph.Node n) - Specified by:
formatVarin interfaceNodeFormatter
-