org.stathissideris.ascii2image.text
Class StringUtils

java.lang.Object
  extended by org.stathissideris.ascii2image.text.StringUtils

public class StringUtils
extends Object

Author:
sideris To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments

Constructor Summary
StringUtils()
           
 
Method Summary
static boolean contains(String big, String fragment)
          The indexOf idiom
static String firstToUpper(String string)
          Converts the first character of string into a capital letter
static String getBaseFilename(String fullPath)
           
static String getExtension(String fullPath)
           
static String getPath(String fullPath)
           
static String insertSpaceAtCaps(String string)
           
static boolean isBlank(String s)
           
static boolean isOneOf(char c, char[] group)
           
static boolean isOneOf(String str, String[] group)
           
static void main(String[] args)
           
static String repeatString(String string, int repeats)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtils

public StringUtils()
Method Detail

contains

public static boolean contains(String big,
                               String fragment)
The indexOf idiom

Parameters:
big -
fragment -
Returns:

repeatString

public static String repeatString(String string,
                                  int repeats)

isBlank

public static boolean isBlank(String s)

firstToUpper

public static String firstToUpper(String string)
Converts the first character of string into a capital letter

Parameters:
string -
Returns:

insertSpaceAtCaps

public static String insertSpaceAtCaps(String string)

isOneOf

public static boolean isOneOf(char c,
                              char[] group)

isOneOf

public static boolean isOneOf(String str,
                              String[] group)

getPath

public static String getPath(String fullPath)

getBaseFilename

public static String getBaseFilename(String fullPath)

getExtension

public static String getExtension(String fullPath)

main

public static void main(String[] args)


Copyright © 2013. All Rights Reserved.