Class NodeFormatterBase

  • All Implemented Interfaces:
    NodeFormatter
    Direct Known Subclasses:
    NodeFormatterNT

    public abstract class NodeFormatterBase
    extends java.lang.Object
    implements NodeFormatter
    Provide implementations of the operations of NodeFormatter in terms of core operations for each node type. N-Triples/N-Quads format.
    • Constructor Detail

      • NodeFormatterBase

        public NodeFormatterBase()
    • Method Detail

      • format

        public void format​(org.apache.jena.atlas.io.AWriter w,
                           Node n)
        Specified by:
        format in interface NodeFormatter
      • 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 interface NodeFormatter
      • 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 interface NodeFormatter
      • 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 interface NodeFormatter
      • formatVar

        public void formatVar​(org.apache.jena.atlas.io.AWriter w,
                              Node n)
        Specified by:
        formatVar in interface NodeFormatter