|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hp.hpl.jena.util.PrintUtil
public class PrintUtil
A collection of small utilites for pretty printing nodes, triples and associated things. The core functionality here is a static prefix map which is preloaded with known prefixes.
updated by Chris March 2004 to use a PrefixMapping rather than the specialised tables.
Field Summary | |
---|---|
static String |
egNS
Default built in eg namespace used in testing |
Constructor Summary | |
---|---|
PrintUtil()
|
Method Summary | |
---|---|
static String |
expandQname(String uri)
Expand qnames to URIs. |
static void |
init()
Load built in prefixes. |
static String |
print(Node node)
Return a simplified print string for a Node. |
static String |
print(Object obj)
Default print which just uses tostring |
static String |
print(RDFNode node)
Return a simplified print string for an RDFNode. |
static String |
print(Statement stmt)
Return a simplified print string for a statment |
static String |
print(Triple triple)
Return a simplified print string for a Triple |
static String |
print(TriplePattern triple)
Return a simplified print string for a TriplePattern |
static void |
printIndent(PrintWriter out,
int indent)
Print an n-space indent to the given output stream |
static void |
printOut(Iterator it)
Print all the Triple values from a find iterator. |
static void |
registerPrefix(String prefix,
String namespace)
Register a new prefix/namespace mapping which will be used to shorten the print strings for resources in known namespaces. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String egNS
Constructor Detail |
---|
public PrintUtil()
Method Detail |
---|
public static void init()
public static void registerPrefix(String prefix, String namespace)
public static String print(Node node)
public static String print(RDFNode node)
public static String print(Triple triple)
public static String print(TriplePattern triple)
public static String print(Statement stmt)
public static String print(Object obj)
public static String expandQname(String uri)
public static void printIndent(PrintWriter out, int indent)
public static void printOut(Iterator it)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |