public class Util
extends java.lang.Object
| Constructor and Description |
|---|
Util(java.io.OutputStream out)
Constructor for the Util object
|
Util(java.io.PrintWriter writer)
Constructor for the Util object
|
| Modifier and Type | Method and Description |
|---|---|
static void |
center(javax.swing.JDialog frame)
Description of the Method
|
static void |
center(javax.swing.JFrame frame)
Description of the Method
|
static java.lang.String |
file_to_string(java.io.File file)
Description of the Method
|
static java.lang.String |
file_to_string(java.lang.String filename)
Description of the Method
|
static java.lang.String |
inputstream_to_string(java.io.InputStream in)
Description of the Method
|
static boolean |
isEqual(java.lang.String str1,
java.lang.String str2) |
static boolean |
isEqual(java.lang.String str1,
java.lang.String str2,
boolean ignoreCase) |
static boolean |
isNullOrEmpty(java.lang.String str) |
static boolean |
isNullOrEmpty(java.lang.String str,
boolean trim) |
static boolean |
isNumber(java.lang.String str)
Gets the number attribute of the Util class
|
static java.lang.String[] |
list_to_strings(java.util.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(java.lang.Object[] array)
Description of the Method
|
void |
print_calendar(java.util.Calendar cal)
Description of the Method
|
void |
print_date(java.util.Date date)
Description of the Method
|
void |
print_hashtable(java.util.Hashtable h)
Description of the Method
|
void |
print_vector(java.util.Vector v)
Description of the Method
|
void |
print(java.lang.Object o)
Description of the Method
|
void |
println(java.lang.Object o)
Description of the Method
|
void |
println(java.lang.Object o,
boolean line)
Description of the Method
|
void |
printUnixtime(long sec)
Description of the Method
|
static java.lang.String |
replace(java.lang.String source,
java.lang.String target,
java.lang.String replacement)
Description of the Method
|
void |
setOn(boolean on)
Sets the on attribute of the Util object
|
void |
setPrintWriter(java.io.PrintWriter writer)
Sets the printWriter attribute of the Util object
|
static void |
sleep(long msec)
Description of the Method
|
static java.lang.String |
stack_to_string(java.lang.Exception e)
Description of the Method
|
static java.lang.String |
stack_to_string(java.lang.Throwable e)
Description of the Method
|
static void |
string_to_file(java.lang.String text,
java.io.File file)
Description of the Method
|
static int |
string_to_int(java.lang.String str)
Description of the Method
|
static java.util.List |
to_list(java.lang.Object[] array)
Description of the Method
|
static java.util.List |
toList(java.lang.Object[] array)
Description of the Method
|
static java.lang.String[] |
vector_to_strings(java.util.Vector v)
Description of the Method
|
public Util(java.io.PrintWriter writer)
writer - PARAMpublic Util(java.io.OutputStream out)
out - PARAMpublic void print(java.lang.Object o)
o - PARAMpublic void println(java.lang.Object o)
o - PARAMpublic void println(java.lang.Object o,
boolean line)
o - PARAMline - PARAMpublic void print_vector(java.util.Vector v)
v - PARAMpublic void print_array(int[][] array)
array - PARAMpublic void print_array(java.lang.Object[] array)
array - PARAMpublic void print_array(int[] array)
array - PARAMpublic void print_hashtable(java.util.Hashtable h)
h - PARAMpublic void print_array(byte[] array)
array - PARAMpublic void print_date(java.util.Date date)
date - PARAMpublic void print_calendar(java.util.Calendar cal)
cal - PARAMpublic void printUnixtime(long sec)
sec - PARAMpublic void setOn(boolean on)
on - The new on valuepublic void setPrintWriter(java.io.PrintWriter writer)
writer - The new printWriter valuepublic static java.lang.String file_to_string(java.lang.String filename)
throws java.io.FileNotFoundException,
java.io.IOException
filename - PARAMjava.io.FileNotFoundException - Throwsjava.io.IOException - Throwspublic static void string_to_file(java.lang.String text,
java.io.File file)
throws java.io.IOException
text - PARAMfile - PARAMjava.io.IOException - Throwspublic static int string_to_int(java.lang.String str)
str - PARAMpublic static java.lang.String stack_to_string(java.lang.Exception e)
e - PARAMpublic static java.lang.String stack_to_string(java.lang.Throwable e)
e - PARAMpublic static java.lang.String inputstream_to_string(java.io.InputStream in)
throws java.io.IOException
in - PARAMjava.io.IOException - Throwspublic static java.lang.String file_to_string(java.io.File file)
throws java.io.IOException
file - PARAMjava.io.FileNotFoundException - Throwsjava.io.IOException - Throwspublic static java.lang.String replace(java.lang.String source,
java.lang.String target,
java.lang.String replacement)
source - PARAMtarget - PARAMreplacement - PARAMpublic static java.lang.String[] vector_to_strings(java.util.Vector v)
v - PARAMpublic static java.lang.String[] list_to_strings(java.util.List l)
l - PARAMpublic static java.util.List toList(java.lang.Object[] array)
array - PARAMpublic static java.util.List to_list(java.lang.Object[] array)
array - PARAMpublic static void sleep(long msec)
msec - PARAMpublic static void center(javax.swing.JFrame frame)
frame - PARAMpublic static void center(javax.swing.JDialog frame)
frame - PARAMpublic static boolean isNumber(java.lang.String str)
str - PARAMpublic static boolean isNullOrEmpty(java.lang.String str)
public static boolean isNullOrEmpty(java.lang.String str,
boolean trim)
public static boolean isEqual(java.lang.String str1,
java.lang.String str2)
public static boolean isEqual(java.lang.String str1,
java.lang.String str2,
boolean ignoreCase)
Copyright © 2014. All Rights Reserved.