Package org.xhtmlrenderer.util
Class Util
java.lang.Object
org.xhtmlrenderer.util.Util
- Direct Known Subclasses:
Uu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidstatic Stringfile_to_string(File file) static Stringfile_to_string(String filename) static Stringstatic booleanstatic booleanstatic booleanisNullOrEmpty(String str) static booleanisNullOrEmpty(String str, boolean trim) static booleanGets the number attribute of the Util classstatic String[]list_to_strings(List<?> l) voidvoidprint_array(byte[] array) voidprint_array(int[] array) voidprint_array(int[][] array) voidprint_array(Object[] array) voidprint_calendar(Calendar cal) voidprint_date(Date date) voidvoidprint_vector(Vector<?> v) voidvoidvoidprintUnixtime(long sec) static StringvoidsetOn(boolean on) Sets the on attribute of the Util objectvoidsetPrintWriter(PrintWriter writer) Sets the printWriter attribute of the Util objectstatic voidsleep(long msec) static Stringstatic Stringstatic voidstring_to_file(String text, File file) static intstring_to_int(String str) static List<?>static String[]vector_to_strings(Vector<?> v)
-
Constructor Details
-
Util
-
Util
-
-
Method Details
-
print
-
println
-
println
-
print_vector
-
print_array
public void print_array(int[][] array) -
print_array
-
print_array
public void print_array(int[] array) -
print_map
-
print_array
public void print_array(byte[] array) -
print_date
-
print_calendar
-
printUnixtime
public void printUnixtime(long sec) -
setOn
public void setOn(boolean on) Sets the on attribute of the Util object- Parameters:
on- The new on value
-
setPrintWriter
Sets the printWriter attribute of the Util object- Parameters:
writer- The new printWriter value
-
file_to_string
- Throws:
IOException
-
string_to_file
- Throws:
IOException
-
string_to_int
-
stack_to_string
-
stack_to_string
-
inputstream_to_string
- Throws:
IOException
-
file_to_string
- Throws:
IOException
-
replace
-
vector_to_strings
-
list_to_strings
-
toList
-
to_list
-
sleep
public static void sleep(long msec) -
center
-
center
-
isNumber
Gets the number attribute of the Util class -
isNullOrEmpty
-
isNullOrEmpty
-
isEqual
-
isEqual
-