Class SystemUtils


  • public class SystemUtils
    extends java.lang.Object

    Title:

    Description:

    Copyright: Copyright (c) 2006

    Company:

    Version:
    1.2
    Author:
    not attributable
    • Constructor Summary

      Constructors 
      Constructor Description
      SystemUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void copy​(java.io.InputStream inStream, java.io.OutputStream outStream)  
      static java.lang.String formatDate​(java.lang.Object date)  
      static java.lang.String formatDate​(java.util.Date date)  
      static boolean getBooleanProperty​(java.lang.String propName, boolean defaultValue)
      Return the value of the boolean System property propName.
      static java.lang.String getCauseMessages​(java.lang.Throwable ex)  
      static java.text.DecimalFormat getDecimalFormatter()  
      static java.lang.String getErrorMessage​(java.lang.Throwable ex)  
      static java.lang.String getIOTempDir()  
      static java.lang.String getOSName()  
      static java.lang.String getUserHome()  
      static java.util.Date parseDate​(java.lang.String dateString)  
      static byte[] toByteArray​(java.io.InputStream inStream)  
      static char[] toHexChars​(byte[] data)  
      static java.lang.String toHexString​(byte[] data)  
      static java.lang.String trimFileName​(java.lang.String filePathName)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • KEY_APPLICATION_NAME

        public static final java.lang.String KEY_APPLICATION_NAME
        See Also:
        Constant Field Values
      • KEY_CLIENT_CONFIG_FOLDER

        public static final java.lang.String KEY_CLIENT_CONFIG_FOLDER
        See Also:
        Constant Field Values
      • KEY_KEYSTORE_FOLDER

        public static final java.lang.String KEY_KEYSTORE_FOLDER
        See Also:
        Constant Field Values
      • charsetName

        public static java.lang.String charsetName
    • Constructor Detail

      • SystemUtils

        public SystemUtils()
    • Method Detail

      • formatDate

        public static java.lang.String formatDate​(java.lang.Object date)
      • formatDate

        public static java.lang.String formatDate​(java.util.Date date)
      • parseDate

        public static java.util.Date parseDate​(java.lang.String dateString)
                                        throws java.text.ParseException
        Throws:
        java.text.ParseException
      • getDecimalFormatter

        public static java.text.DecimalFormat getDecimalFormatter()
      • getCauseMessages

        public static java.lang.String getCauseMessages​(java.lang.Throwable ex)
      • getErrorMessage

        public static java.lang.String getErrorMessage​(java.lang.Throwable ex)
      • toByteArray

        public static byte[] toByteArray​(java.io.InputStream inStream)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • copy

        public static void copy​(java.io.InputStream inStream,
                                java.io.OutputStream outStream)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • trimFileName

        public static java.lang.String trimFileName​(java.lang.String filePathName)
      • getOSName

        public static java.lang.String getOSName()
      • getIOTempDir

        public static java.lang.String getIOTempDir()
      • getUserHome

        public static java.lang.String getUserHome()
      • toHexString

        public static java.lang.String toHexString​(byte[] data)
      • toHexChars

        public static char[] toHexChars​(byte[] data)
      • getBooleanProperty

        public static boolean getBooleanProperty​(java.lang.String propName,
                                                 boolean defaultValue)
        Return the value of the boolean System property propName.
        Parameters:
        propName - property name.
        defaultValue - default value.
        Returns:
        Property value as boolean.