Class Util

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

public class Util extends Object
  • Constructor Details

  • Method Details

    • print

      public void print(Object o)
    • println

      public void println(Object o)
    • println

      public void println(Object o, boolean line)
    • 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

      public void setPrintWriter(PrintWriter writer)
      Sets the printWriter attribute of the Util object
      Parameters:
      writer - The new printWriter value
    • file_to_string

      public static String file_to_string(String filename) throws IOException
      Throws:
      IOException
    • string_to_file

      public static void string_to_file(String text, File file) throws IOException
      Throws:
      IOException
    • string_to_int

      public static int string_to_int(String str)
    • stack_to_string

      public static String stack_to_string(Exception e)
    • stack_to_string

      public static String stack_to_string(Throwable e)
    • inputstream_to_string

      public static String inputstream_to_string(InputStream in) throws IOException
      Throws:
      IOException
    • file_to_string

      public static String file_to_string(File file) throws IOException
      Throws:
      IOException
    • replace

      public static String replace(String source, String target, String replacement)
    • vector_to_strings

      public static String[] vector_to_strings(Vector<?> v)
    • list_to_strings

      public static String[] list_to_strings(List<?> l)
    • toList

      public static List<?> toList(Object[] array)
    • to_list

      public static List<Object> to_list(Object[] array)
    • sleep

      public static void sleep(long msec)
    • center

      public static void center(JFrame frame)
    • center

      public static void center(JDialog frame)
    • isNumber

      public static boolean isNumber(String str)
      Gets the number attribute of the Util class
    • isNullOrEmpty

      public static boolean isNullOrEmpty(String str)
    • isNullOrEmpty

      public static boolean isNullOrEmpty(String str, boolean trim)
    • isEqual

      public static boolean isEqual(String str1, String str2)
    • isEqual

      public static boolean isEqual(String str1, String str2, boolean ignoreCase)