it.jnrpe.utils
Class StringUtils
java.lang.Object
it.jnrpe.utils.StringUtils
public final class StringUtils
- extends Object
A simple string util class.
- Author:
- Massimiliano Ziccardi
|
Method Summary |
static String[] |
split(String sString,
boolean bIgnoreQuotes)
This is a simple utility to split strings. |
static String[] |
split(String sString,
char separator,
boolean bIgnoreQuotes)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
split
public static String[] split(String sString,
boolean bIgnoreQuotes)
- This is a simple utility to split strings. The string is splitted.
following these rules (in the order):
- If a single quote (') or a double quote (") is found at the start of
the word, the split will occour at the next quote or double quote.
- Otherwise, the split occurres as soon as a space is found.
- Parameters:
sString - The string to splitbIgnoreQuotes - For future implementation
- Returns:
- The splitted string
- Since:
- JNRPE Server 1.04
split
public static String[] split(String sString,
char separator,
boolean bIgnoreQuotes)
Copyright © 2013. All Rights Reserved.