| java.lang.Object com.hp.hpl.jena.rdf.model.impl.Util
Util | public class Util extends Object (Code) | | Some utility functions.
author: bwm version: Release='$Name: $' Revision='$Revision: 1.14 $' Date='$Date: 2008/01/02 12:05:07 $' |
Method Summary | |
public static String | XgetProperty(String p) Call System.getProperty and suppresses SecurityException, (simply returns null). | public static String | XgetProperty(String p, String def) Call System.getProperty and suppresses SecurityException, (simply returns null). | public static boolean | notNameChar(char ch) answer true iff this is not a legal NCName character, ie, is
a possible split-point start. | public static String | replace(String s, String oldString, String newString) | public static int | splitNamespace(String uri) Given an absolute URI, determine the split point between the namespace part
and the localname part. | public static String | substituteEntitiesInElementContent(String s) Answer s modified to replace <, >, and & by
their corresponding entity references. | public static String | substituteEntitiesInEntityValue(String s) | public static String | substituteStandardEntities(String s) |
elementContentEntities | protected static Pattern elementContentEntities(Code) | | |
entityValueEntities | protected static Pattern entityValueEntities(Code) | | |
XgetProperty | public static String XgetProperty(String p)(Code) | | Call System.getProperty and suppresses SecurityException, (simply returns null).
The property value, or null if none or there is a SecurityException. |
XgetProperty | public static String XgetProperty(String p, String def)(Code) | | Call System.getProperty and suppresses SecurityException, (simply returns null).
The property value, or null if none or there is a SecurityException. |
notNameChar | public static boolean notNameChar(char ch)(Code) | | answer true iff this is not a legal NCName character, ie, is
a possible split-point start.
|
splitNamespace | public static int splitNamespace(String uri)(Code) | | Given an absolute URI, determine the split point between the namespace part
and the localname part.
If there is no valid localname part then the length of the
string is returned.
The algorithm tries to find the longest NCName at the end
of the uri, not immediately preceeded by the first colon
in the string.
Parameters: uri - the index of the first character of the localname |
substituteEntitiesInElementContent | public static String substituteEntitiesInElementContent(String s)(Code) | | Answer s modified to replace <, >, and & by
their corresponding entity references.
Implementation note: as a (possibly misguided) performance hack,
the obvious cascade of replaceAll calls is replaced by an explicit
loop that looks for all three special characters at once.
|
substituteEntitiesInEntityValue | public static String substituteEntitiesInEntityValue(String s)(Code) | | |
|
|