Project CASUAL
API for CASUAL
 All Classes Namespaces Functions Variables
Static Public Member Functions | List of all members
CASUAL.misc.StringOperations Class Reference

Static Public Member Functions

static String replaceLast (String string, String toReplace, String replacement)
 
static String removeLeadingSpaces (String line)
 
static String removeLeadingAndTrailingSpaces (String line)
 
static String removeTrailingSpaces (String line)
 
static String convertStreamToString (java.io.InputStream is)
 
static InputStream convertStringToStream (String input)
 
static String[] convertArrayListToStringArray (List< String > list)
 
static String[] convertStringToArray (String inputString)
 
static String generateRandomHexString (int len)
 
static String arrayToString (String[] stringarray)
 
static String replaceLast (String string, String toReplace, String replacement)
 
static String removeLeadingSpaces (String line)
 
static String removeLeadingAndTrailingSpaces (String line)
 
static String removeTrailingSpaces (String line)
 
static String convertStreamToString (java.io.InputStream is)
 
static InputStream convertStringToStream (String input)
 
static String[] convertArrayListToStringArray (List< String > list)
 
static String[] convertStringToArray (String inputString)
 
static String generateRandomHexString (int len)
 
static String arrayToString (String[] stringarray)
 

Detailed Description

Author
Adam Outler adamo.nosp@m.utle.nosp@m.r@gma.nosp@m.il.c.nosp@m.om

Member Function Documentation

static String CASUAL.misc.StringOperations.arrayToString ( String[]  stringarray)
static

Converts an array to a string delimited by a space.

Parameters
stringarraystring array to merge into single string
Returns
string representaition of an array.
static String CASUAL.misc.StringOperations.arrayToString ( String[]  stringarray)
static

Converts an array to a string delimited by a space.

Parameters
stringarraystring array to merge into single string
Returns
string representaition of an array.
static String [] CASUAL.misc.StringOperations.convertArrayListToStringArray ( List< String >  list)
static

takes a array list and converts to string array

Parameters
listinput array list
Returns
output string array
static String [] CASUAL.misc.StringOperations.convertArrayListToStringArray ( List< String >  list)
static

takes a array list and converts to string array

Parameters
listinput array list
Returns
output string array
static String CASUAL.misc.StringOperations.convertStreamToString ( java.io.InputStream  is)
static

reads a stream and returns a string

Parameters
isstream to read
Returns
stream converted to string
static String CASUAL.misc.StringOperations.convertStreamToString ( java.io.InputStream  is)
static

reads a stream and returns a string

Parameters
isstream to read
Returns
stream converted to string
static String [] CASUAL.misc.StringOperations.convertStringToArray ( String  inputString)
static

Returns an array of Strings from a source String.

Parameters
inputStringcontains comma delimited collection of strings each surrounded by quotations.
Returns
string array result of breaking on commas
Author
Jeremy Loper jrlop.nosp@m.er@g.nosp@m.mail..nosp@m.com
static String [] CASUAL.misc.StringOperations.convertStringToArray ( String  inputString)
static

Returns an array of Strings from a source String.

Parameters
inputStringcontains comma delimited collection of strings each surrounded by quotations.
Returns
string array result of breaking on commas
Author
Jeremy Loper jrlop.nosp@m.er@g.nosp@m.mail..nosp@m.com
static InputStream CASUAL.misc.StringOperations.convertStringToStream ( String  input)
static

converts a String to an InputStream

Parameters
inputstring to turn into an InputStream
Returns
InputStream representation of the input string.
static InputStream CASUAL.misc.StringOperations.convertStringToStream ( String  input)
static

converts a String to an InputStream

Parameters
inputstring to turn into an InputStream
Returns
InputStream representation of the input string.
static String CASUAL.misc.StringOperations.generateRandomHexString ( int  len)
static

gets a random hexadecimal string

Parameters
lenlength of string to return
Returns
random hex string of specified length
static String CASUAL.misc.StringOperations.generateRandomHexString ( int  len)
static

gets a random hexadecimal string

Parameters
lenlength of string to return
Returns
random hex string of specified length
static String CASUAL.misc.StringOperations.removeLeadingAndTrailingSpaces ( String  line)
static

removes leading and trailing spaces

Parameters
lineoriginal value
Returns
original value without leading or trailing spaces
static String CASUAL.misc.StringOperations.removeLeadingAndTrailingSpaces ( String  line)
static

removes leading and trailing spaces

Parameters
lineoriginal value
Returns
original value without leading or trailing spaces
static String CASUAL.misc.StringOperations.removeLeadingSpaces ( String  line)
static

removes leading spaces from line

Parameters
linestring to remove spaces from
Returns
line without any leading spaces
static String CASUAL.misc.StringOperations.removeLeadingSpaces ( String  line)
static

removes leading spaces from line

Parameters
linestring to remove spaces from
Returns
line without any leading spaces
static String CASUAL.misc.StringOperations.removeTrailingSpaces ( String  line)
static

remove trailing spaces

Parameters
lineoriginal value
Returns
original value without trailing spaces
static String CASUAL.misc.StringOperations.removeTrailingSpaces ( String  line)
static

remove trailing spaces

Parameters
lineoriginal value
Returns
original value without trailing spaces
static String CASUAL.misc.StringOperations.replaceLast ( String  string,
String  toReplace,
String  replacement 
)
static

replaces the last instance of a string

Parameters
stringoriginal string
toReplacevalue to replace
replacementreplace with this
Returns
string with last value replaced
static String CASUAL.misc.StringOperations.replaceLast ( String  string,
String  toReplace,
String  replacement 
)
static

replaces the last instance of a string

Parameters
stringoriginal string
toReplacevalue to replace
replacementreplace with this
Returns
string with last value replaced

The documentation for this class was generated from the following file: