Flying Saucer Project Release ${app.version}

org.xhtmlrenderer.util
Class Util

java.lang.Object
  extended by org.xhtmlrenderer.util.Util
Direct Known Subclasses:
Uu

public class Util
extends java.lang.Object

Description of the Class

Author:
empty

Constructor Summary
Util(java.io.OutputStream out)
          Constructor for the Util object
Util(java.io.PrintWriter writer)
          Constructor for the Util object
 
Method Summary
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 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util(java.io.PrintWriter writer)
Constructor for the Util object

Parameters:
writer - PARAM

Util

public Util(java.io.OutputStream out)
Constructor for the Util object

Parameters:
out - PARAM
Method Detail

print

public void print(java.lang.Object o)
Description of the Method

Parameters:
o - PARAM

println

public void println(java.lang.Object o)
Description of the Method

Parameters:
o - PARAM

println

public void println(java.lang.Object o,
                    boolean line)
Description of the Method

Parameters:
o - PARAM
line - PARAM

print_vector

public void print_vector(java.util.Vector v)
Description of the Method

Parameters:
v - PARAM

print_array

public void print_array(int[][] array)
Description of the Method

Parameters:
array - PARAM

print_array

public void print_array(java.lang.Object[] array)
Description of the Method

Parameters:
array - PARAM

print_array

public void print_array(int[] array)
Description of the Method

Parameters:
array - PARAM

print_hashtable

public void print_hashtable(java.util.Hashtable h)
Description of the Method

Parameters:
h - PARAM

print_array

public void print_array(byte[] array)
Description of the Method

Parameters:
array - PARAM

print_date

public void print_date(java.util.Date date)
Description of the Method

Parameters:
date - PARAM

print_calendar

public void print_calendar(java.util.Calendar cal)
Description of the Method

Parameters:
cal - PARAM

printUnixtime

public void printUnixtime(long sec)
Description of the Method

Parameters:
sec - PARAM

setOn

public void setOn(boolean on)
Sets the on attribute of the Util object

Parameters:
on - The new on value

setPrintWriter

public void setPrintWriter(java.io.PrintWriter writer)
Sets the printWriter attribute of the Util object

Parameters:
writer - The new printWriter value

file_to_string

public static java.lang.String file_to_string(java.lang.String filename)
                                       throws java.io.FileNotFoundException,
                                              java.io.IOException
Description of the Method

Parameters:
filename - PARAM
Returns:
Returns
Throws:
java.io.FileNotFoundException - Throws
java.io.IOException - Throws

string_to_file

public static void string_to_file(java.lang.String text,
                                  java.io.File file)
                           throws java.io.IOException
Description of the Method

Parameters:
text - PARAM
file - PARAM
Throws:
java.io.IOException - Throws

string_to_int

public static int string_to_int(java.lang.String str)
Description of the Method

Parameters:
str - PARAM
Returns:
Returns

stack_to_string

public static java.lang.String stack_to_string(java.lang.Exception e)
Description of the Method

Parameters:
e - PARAM
Returns:
Returns

stack_to_string

public static java.lang.String stack_to_string(java.lang.Throwable e)
Description of the Method

Parameters:
e - PARAM
Returns:
Returns

inputstream_to_string

public static java.lang.String inputstream_to_string(java.io.InputStream in)
                                              throws java.io.IOException
Description of the Method

Parameters:
in - PARAM
Returns:
Returns
Throws:
java.io.IOException - Throws

file_to_string

public static java.lang.String file_to_string(java.io.File file)
                                       throws java.io.FileNotFoundException,
                                              java.io.IOException
Description of the Method

Parameters:
file - PARAM
Returns:
Returns
Throws:
java.io.FileNotFoundException - Throws
java.io.IOException - Throws

replace

public static java.lang.String replace(java.lang.String source,
                                       java.lang.String target,
                                       java.lang.String replacement)
Description of the Method

Parameters:
source - PARAM
target - PARAM
replacement - PARAM
Returns:
Returns

vector_to_strings

public static java.lang.String[] vector_to_strings(java.util.Vector v)
Description of the Method

Parameters:
v - PARAM
Returns:
Returns

list_to_strings

public static java.lang.String[] list_to_strings(java.util.List l)
Description of the Method

Parameters:
l - PARAM
Returns:
Returns

toList

public static java.util.List toList(java.lang.Object[] array)
Description of the Method

Parameters:
array - PARAM
Returns:
Returns

to_list

public static java.util.List to_list(java.lang.Object[] array)
Description of the Method

Parameters:
array - PARAM
Returns:
Returns

sleep

public static void sleep(long msec)
Description of the Method

Parameters:
msec - PARAM

center

public static void center(javax.swing.JFrame frame)
Description of the Method

Parameters:
frame - PARAM

center

public static void center(javax.swing.JDialog frame)
Description of the Method

Parameters:
frame - PARAM

isNumber

public static boolean isNumber(java.lang.String str)
Gets the number attribute of the Util class

Parameters:
str - PARAM
Returns:
The number value

Flying Saucer Project Release ${app.version}

Flying Saucer Project Home