TorqueBox 3.1.2

org.torquebox.core.util
Class StringUtils

java.lang.Object
  extended by org.projectodd.polyglot.core.util.StringUtil
      extended by org.torquebox.core.util.StringUtils

public class StringUtils
extends org.projectodd.polyglot.core.util.StringUtil

Java implementations of ActiveSupport string utilities.

Author:
Anthony Eden, Bob McWhirter

Constructor Summary
StringUtils()
           
 
Method Summary
static String classNameToPath(String className)
           
static List<String> parseCommandLineOptions(String options)
          Parse a String into List similar to how the JVM parses commandline arguments into String[] args.
static String pathToClassName(String path)
           
static String pathToClassName(String path, String extension)
           
 
Methods inherited from class org.projectodd.polyglot.core.util.StringUtil
camelize, underscore
 
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

pathToClassName

public static String pathToClassName(String path)

pathToClassName

public static String pathToClassName(String path,
                                     String extension)

classNameToPath

public static String classNameToPath(String className)

parseCommandLineOptions

public static List<String> parseCommandLineOptions(String options)
Parse a String into List similar to how the JVM parses commandline arguments into String[] args. This is basically the logic from jruby-launcher's argparser.cpp ported to Java.


TorqueBox 3.1.2

Copyright © 2015 JBoss by Red Hat. All Rights Reserved.