SOAj Consolidated


info.soaj.core.util
Class SjUtilStrings

java.lang.Object
  extended by info.soaj.core.util.SjUtilStrings

public class SjUtilStrings
extends java.lang.Object

This utility class contains methods supporting String manipulation.

Copyright (c) 2006 - 2009 by Global Technology Consulting Group, Inc. at gtcGroup.com .

Since:
v. 1.0
Author:
MarvinToll@gtcGroup.com

Field Summary
private static java.lang.String CLASS_NAME
          CLASS_NAME
 
Constructor Summary
private SjUtilStrings()
          Constructor - Private
 
Method Summary
static java.lang.String[] parseStringArray(java.lang.String string)
          This method parses a comma delimited string.
static java.io.InputStream parseStringToInputStreamThatShouldBeClosed(java.lang.String populatedString)
          Parses a String to an InputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_NAME

private static final java.lang.String CLASS_NAME
CLASS_NAME

Constructor Detail

SjUtilStrings

private SjUtilStrings()
Constructor - Private

Method Detail

parseStringArray

public static java.lang.String[] parseStringArray(java.lang.String string)
                                           throws SjCoreExceptionValidatingString
This method parses a comma delimited string. A null or empty string results in a null being returned. An empty sub-string results in an exception.

Parameters:
string -
Returns:
String[] or null - Null if the string argument is null or empty. Else, if any
Throws:
SjCoreExceptionValidatingString

parseStringToInputStreamThatShouldBeClosed

public static java.io.InputStream parseStringToInputStreamThatShouldBeClosed(java.lang.String populatedString)
                                                                      throws SjCoreExceptionValidatingString
Parses a String to an InputStream.

Parameters:
populatedString -
Returns:
InputStream
Throws:
SjCoreExceptionValidatingString

SOAj Consolidated


Copyright (c) 2006 - 2009 by Global Technology Consulting Group, Inc. at gtcGroup.com.
Use is authorized, provided the source is acknowledged by inclusion of this copyright notice.