|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openjena.atlas.lib.StrUtils
public class StrUtils
Field Summary | |
---|---|
static int |
CMP_EQUAL
|
static int |
CMP_GREATER
|
static int |
CMP_INDETERMINATE
|
static int |
CMP_LESS
|
static int |
CMP_UNEQUAL
|
Method Summary | |
---|---|
static byte[] |
asUTF8bytes(String s)
|
static String |
chop(String x)
|
static boolean |
contains(String str1,
String str2)
Does one string contain another string? |
static String |
decodeHex(String str,
char marker)
Decode a string using marked hex values e.g. |
static String |
encodeHex(String str,
char marker,
char[] escapees)
Encode a string using hex values e.g. |
static String |
escapeString(String x)
|
static String |
fromUTF8bytes(byte[] bytes)
|
static String |
noNewlineEnding(String x)
|
static String |
replace(String string,
String target,
String replacement)
|
static String[] |
split(String s,
String splitStr)
Split but also trim whiespace. |
static String |
str(Object x)
|
static int |
strCompare(String s1,
String s2)
|
static int |
strCompareIgnoreCase(String s1,
String s2)
|
static String |
strform(Map<String,String> subs,
String... args)
|
static String |
strjoin(String sep,
List<String> args)
Concatentate string, using a separator |
static String |
strjoin(String sep,
String... args)
Concatentate strings, using a separator |
static String |
strjoinNL(List<String> args)
strjoin with a newline as the separator |
static String |
strjoinNL(String... args)
strjoin with a newline as the separator |
static String |
substitute(String str,
Map<String,String> subs)
|
static List<Character> |
toCharList(String str)
|
static String |
unescapeString(String x)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int CMP_GREATER
public static final int CMP_EQUAL
public static final int CMP_LESS
public static final int CMP_UNEQUAL
public static final int CMP_INDETERMINATE
Method Detail |
---|
public static String strjoinNL(String... args)
public static String strjoinNL(List<String> args)
public static String strjoin(String sep, String... args)
public static String strjoin(String sep, List<String> args)
public static int strCompare(String s1, String s2)
public static int strCompareIgnoreCase(String s1, String s2)
public static byte[] asUTF8bytes(String s)
public static String fromUTF8bytes(byte[] bytes)
public static String str(Object x)
public static String[] split(String s, String splitStr)
public static final boolean contains(String str1, String str2)
str1
- str2
-
public static final String replace(String string, String target, String replacement)
public static String substitute(String str, Map<String,String> subs)
public static String strform(Map<String,String> subs, String... args)
public static String chop(String x)
public static String noNewlineEnding(String x)
public static List<Character> toCharList(String str)
public static String encodeHex(String str, char marker, char[] escapees)
str
- String to encodemarker
- Marker characterescapees
- Characters to encode (must include the marker)
public static String decodeHex(String str, char marker)
str
- String to decodemarker
- The marker charcater
public static String escapeString(String x)
public static String unescapeString(String x)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |