it.jnrpe.utils
Class StringUtils

java.lang.Object
  extended by it.jnrpe.utils.StringUtils

public final class StringUtils
extends Object

A simple string util class.

Author:
Massimiliano Ziccardi

Method Summary
static String[] split(String string, boolean ignoreQuotes)
          This is a simple utility to split strings.
static String[] split(String string, char separator, boolean ignoreQuotes)
          Splits the given string using as separator the separator character.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

split

public static String[] split(String string,
                             boolean ignoreQuotes)
This is a simple utility to split strings. The string is splitted. following these rules (in the order):

Parameters:
string - The string to split
ignoreQuotes - For future implementation
Returns:
The splitted string
Since:
JNRPE Server 1.04

split

public static String[] split(String string,
                             char separator,
                             boolean ignoreQuotes)
Splits the given string using as separator the separator character.

Parameters:
string - The string to be splitted
separator - The separator character
ignoreQuotes - true if the quotes must be ignored.
Returns:
The splitted string


Copyright © 2014. All Rights Reserved.