com.hp.hpl.mesa.rdf.jena.common
Class Util
java.lang.Object
|
+--com.hp.hpl.mesa.rdf.jena.common.Util
- public class Util
- extends java.lang.Object
Some utility functions.
- Version:
- Release='$Name: $' Revision='$Revision: 1.5 $' Date='$Date: 2002/09/18 11:58:00 $'
- Author:
- bwm
|
Field Summary |
static java.lang.String |
CLASSPATH
|
|
Constructor Summary |
Util()
|
|
Method Summary |
static java.lang.String |
getProperty(java.lang.String p)
Call System.getProperty and suppresses SecurityException, (simply returns null). |
static java.lang.String |
getProperty(java.lang.String p,
java.lang.String def)
Call System.getProperty and suppresses SecurityException, (simply returns null). |
static java.lang.String |
replace(java.lang.String s,
java.lang.String oldString,
java.lang.String newString)
|
static int |
splitNamespace(java.lang.String uri)
Given a URI, determine the split point between the namespace part
and the localname part. |
static java.lang.String |
substituteStandardEntities(java.lang.String s)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLASSPATH
public static final java.lang.String CLASSPATH
- See Also:
- Constant Field Values
Util
public Util()
splitNamespace
public static int splitNamespace(java.lang.String uri)
- Given a 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.
- Parameters:
uri -
- Returns:
- the index of the first character of the localname
substituteStandardEntities
public static java.lang.String substituteStandardEntities(java.lang.String s)
replace
public static java.lang.String replace(java.lang.String s,
java.lang.String oldString,
java.lang.String newString)
getProperty
public static java.lang.String getProperty(java.lang.String p)
- Call System.getProperty and suppresses SecurityException, (simply returns null).
- Returns:
- The property value, or null if none or there is a SecurityException.
getProperty
public static java.lang.String getProperty(java.lang.String p,
java.lang.String def)
- Call System.getProperty and suppresses SecurityException, (simply returns null).
- Returns:
- The property value, or null if none or there is a SecurityException.
Copyright © 2001 Hewlett-Packard. All Rights Reserved.