|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xhtmlrenderer.util.Util
public class Util
Description of the Class
| Constructor Summary | |
|---|---|
Util(OutputStream out)
Constructor for the Util object |
|
Util(PrintWriter writer)
Constructor for the Util object |
|
| Method Summary | |
|---|---|
static void |
center(JDialog frame)
Description of the Method |
static void |
center(JFrame frame)
Description of the Method |
static String |
file_to_string(File file)
Description of the Method |
static String |
file_to_string(String filename)
Description of the Method |
static String |
inputstream_to_string(InputStream in)
Description of the Method |
static boolean |
isEqual(String str1,
String str2)
|
static boolean |
isEqual(String str1,
String str2,
boolean ignoreCase)
|
static boolean |
isNullOrEmpty(String str)
|
static boolean |
isNullOrEmpty(String str,
boolean trim)
|
static boolean |
isNumber(String str)
Gets the number attribute of the Util class |
static String[] |
list_to_strings(List l)
Description of the Method |
void |
print_array(byte[] array)
Description of the Method |
void |
print_array(int[] array)
Description of the Method |
void |
print_array(int[][] array)
Description of the Method |
void |
print_array(Object[] array)
Description of the Method |
void |
print_calendar(Calendar cal)
Description of the Method |
void |
print_date(Date date)
Description of the Method |
void |
print_hashtable(Hashtable h)
Description of the Method |
void |
print_vector(Vector v)
Description of the Method |
void |
print(Object o)
Description of the Method |
void |
println(Object o)
Description of the Method |
void |
println(Object o,
boolean line)
Description of the Method |
void |
printUnixtime(long sec)
Description of the Method |
static String |
replace(String source,
String target,
String replacement)
Description of the Method |
void |
setOn(boolean on)
Sets the on attribute of the Util object |
void |
setPrintWriter(PrintWriter writer)
Sets the printWriter attribute of the Util object |
static void |
sleep(long msec)
Description of the Method |
static String |
stack_to_string(Exception e)
Description of the Method |
static String |
stack_to_string(Throwable e)
Description of the Method |
static void |
string_to_file(String text,
File file)
Description of the Method |
static int |
string_to_int(String str)
Description of the Method |
static List |
to_list(Object[] array)
Description of the Method |
static List |
toList(Object[] array)
Description of the Method |
static String[] |
vector_to_strings(Vector v)
Description of the Method |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Util(PrintWriter writer)
writer - PARAMpublic Util(OutputStream out)
out - PARAM| Method Detail |
|---|
public void print(Object o)
o - PARAMpublic void println(Object o)
o - PARAM
public void println(Object o,
boolean line)
o - PARAMline - PARAMpublic void print_vector(Vector v)
v - PARAMpublic void print_array(int[][] array)
array - PARAMpublic void print_array(Object[] array)
array - PARAMpublic void print_array(int[] array)
array - PARAMpublic void print_hashtable(Hashtable h)
h - PARAMpublic void print_array(byte[] array)
array - PARAMpublic void print_date(Date date)
date - PARAMpublic void print_calendar(Calendar cal)
cal - PARAMpublic void printUnixtime(long sec)
sec - PARAMpublic void setOn(boolean on)
on - The new on valuepublic void setPrintWriter(PrintWriter writer)
writer - The new printWriter value
public static String file_to_string(String filename)
throws FileNotFoundException,
IOException
filename - PARAM
FileNotFoundException - Throws
IOException - Throws
public static void string_to_file(String text,
File file)
throws IOException
text - PARAMfile - PARAM
IOException - Throwspublic static int string_to_int(String str)
str - PARAM
public static String stack_to_string(Exception e)
e - PARAM
public static String stack_to_string(Throwable e)
e - PARAM
public static String inputstream_to_string(InputStream in)
throws IOException
in - PARAM
IOException - Throws
public static String file_to_string(File file)
throws IOException
file - PARAM
FileNotFoundException - Throws
IOException - Throws
public static String replace(String source,
String target,
String replacement)
source - PARAMtarget - PARAMreplacement - PARAM
public static String[] vector_to_strings(Vector v)
v - PARAM
public static String[] list_to_strings(List l)
l - PARAM
public static List toList(Object[] array)
array - PARAM
public static List to_list(Object[] array)
array - PARAM
public static void sleep(long msec)
msec - PARAMpublic static void center(JFrame frame)
frame - PARAMpublic static void center(JDialog frame)
frame - PARAMpublic static boolean isNumber(String str)
str - PARAM
public static boolean isNullOrEmpty(String str)
public static boolean isNullOrEmpty(String str,
boolean trim)
public static boolean isEqual(String str1,
String str2)
public static boolean isEqual(String str1,
String str2,
boolean ignoreCase)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||