com.bitmechanic.maxq
Class Utils

java.lang.Object
  extended by com.bitmechanic.maxq.Utils

public class Utils
extends java.lang.Object

Created by IntelliJ IDEA. User: whearn Date: Aug 23, 2003 Time: 12:34:05 AM To change this template use Options | File Templates.


Nested Class Summary
static class Utils.SilentException
          For silently aborting without showing any error.
static class Utils.UserException
          For exceptions whose messages have been composed so that they can be understood by the user.
 
Field Summary
static java.lang.String SPACE
           
 
Constructor Summary
Utils()
           
 
Method Summary
static java.util.List getParams(java.lang.String query)
           
static java.lang.String replace(java.lang.String str, java.lang.String search, java.lang.String replace)
           
static java.io.File saveHTML(java.lang.String htmlFileName, java.lang.String str, java.lang.String dir_str)
          Save HTML string to a file under the specified directory.
static java.lang.String[] splitString(java.lang.String str, java.lang.String delim)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SPACE

public static final java.lang.String SPACE
See Also:
Constant Field Values
Constructor Detail

Utils

public Utils()
Method Detail

saveHTML

public static java.io.File saveHTML(java.lang.String htmlFileName,
                                    java.lang.String str,
                                    java.lang.String dir_str)
Save HTML string to a file under the specified directory. Target file is overwritten if already exists.

Parameters:
htmlFileName - HTML filename
str - HTML text
dir_str - directory under which the HTML file will be created
Returns:
file representing the HTML file created

splitString

public static java.lang.String[] splitString(java.lang.String str,
                                             java.lang.String delim)

replace

public static java.lang.String replace(java.lang.String str,
                                       java.lang.String search,
                                       java.lang.String replace)

getParams

public static java.util.List getParams(java.lang.String query)