| Constructor and Description |
|---|
Util(OutputStream out) |
Util(PrintWriter writer) |
| Modifier and Type | Method and Description |
|---|---|
static void |
center(JDialog frame) |
static void |
center(JFrame frame) |
static String |
file_to_string(File file) |
static String |
file_to_string(String filename) |
static String |
inputstream_to_string(InputStream in) |
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) |
void |
print_array(byte[] array) |
void |
print_array(int[] array) |
void |
print_array(int[][] array) |
void |
print_array(Object[] array) |
void |
print_calendar(Calendar cal) |
void |
print_date(Date date) |
void |
print_map(Map<?,?> h) |
void |
print_vector(Vector<?> v) |
void |
print(Object o) |
void |
println(Object o) |
void |
println(Object o,
boolean line) |
void |
printUnixtime(long sec) |
static String |
replace(String source,
String target,
String replacement) |
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) |
static String |
stack_to_string(Exception e) |
static String |
stack_to_string(Throwable e) |
static void |
string_to_file(String text,
File file) |
static int |
string_to_int(String str) |
static List<Object> |
to_list(Object[] array) |
static List<?> |
toList(Object[] array) |
static String[] |
vector_to_strings(Vector<?> v) |
public Util(PrintWriter writer)
public Util(OutputStream out)
public void print(Object o)
public void println(Object o)
public void println(Object o, boolean line)
public void print_vector(Vector<?> v)
public void print_array(int[][] array)
public void print_array(Object[] array)
public void print_array(int[] array)
public void print_map(Map<?,?> h)
public void print_array(byte[] array)
public void print_date(Date date)
public void print_calendar(Calendar cal)
public void printUnixtime(long sec)
public 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 IOException
IOExceptionpublic static void string_to_file(String text, File file) throws IOException
IOExceptionpublic static int string_to_int(String str)
public static String inputstream_to_string(InputStream in) throws IOException
IOExceptionpublic static String file_to_string(File file) throws IOException
IOExceptionpublic static void sleep(long msec)
public static void center(JFrame frame)
public static void center(JDialog frame)
public static boolean isNumber(String str)
public static boolean isNullOrEmpty(String str)
public static boolean isNullOrEmpty(String str, boolean trim)
Copyright © 2023. All rights reserved.