| Constructor and Description |
|---|
Util(OutputStream out)
Constructor for the Util object
|
Util(PrintWriter writer)
Constructor for the Util object
|
| Modifier and Type | Method and Description |
|---|---|
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
|
public Util(PrintWriter writer)
writer - PARAMpublic Util(OutputStream out)
out - PARAMpublic void print(Object o)
o - PARAMpublic void println(Object o)
o - PARAMpublic 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 valuepublic static String file_to_string(String filename) throws FileNotFoundException, IOException
filename - PARAMFileNotFoundException - ThrowsIOException - Throwspublic static void string_to_file(String text, File file) throws IOException
text - PARAMfile - PARAMIOException - Throwspublic static int string_to_int(String str)
str - PARAMpublic static String stack_to_string(Exception e)
e - PARAMpublic static String stack_to_string(Throwable e)
e - PARAMpublic static String inputstream_to_string(InputStream in) throws IOException
in - PARAMIOException - Throwspublic static String file_to_string(File file) throws IOException
file - PARAMFileNotFoundException - ThrowsIOException - Throwspublic static String replace(String source, String target, String replacement)
source - PARAMtarget - PARAMreplacement - PARAMpublic static String[] vector_to_strings(Vector v)
v - PARAMpublic static String[] list_to_strings(List l)
l - PARAMpublic static List toList(Object[] array)
array - PARAMpublic static List to_list(Object[] array)
array - PARAMpublic 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 - PARAMpublic static boolean isNullOrEmpty(String str)
public static boolean isNullOrEmpty(String str, boolean trim)
Copyright © 2018. All rights reserved.