org.jrdf.util
Class EscapeUtil
java.lang.Object
org.jrdf.util.EscapeUtil
public final class EscapeUtil
- extends Object
A utility that applies N-Triples escaping.
For reference:
http://www.echip.com.vn/echiproot/weblh/suutam/2000/uformat.htm
- Version:
- $Revision: 1822 $
- Author:
- Simon Raboczi, Andrew Newman
Method Summary |
static String |
escape(String string)
Escapes a string literal to a string that is N-Triple escaped. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
escape
public static String escape(String string)
throws IllegalStateException
- Escapes a string literal to a string that is N-Triple escaped.
- Parameters:
string
- a string to escape, never null
.
- Returns:
- a version of the string with N-Triples escapes applied.
- Throws:
IllegalStateException
- if there is no handler to perform the relevant match.