com.sun.jts.utils
Class LogFormatter

java.lang.Object
  extended by com.sun.jts.utils.LogFormatter

public class LogFormatter
extends java.lang.Object

This class is used to format the trace record.

Version:
1.0
Author:
K Venugopal

Constructor Summary
LogFormatter()
           
 
Method Summary
static java.lang.String convertPropsToString(java.util.Properties prop)
          Helper method to convert properties to string.
static java.lang.String convertToString(byte[] byteArray)
          Helper method to convert a byte arror to string.
static java.lang.String convertXidArrayToString(Xid[] xidArray)
          Converts an array of xids to string that can be printed.
static java.lang.String getLocalizedMessage(java.util.logging.Logger logger, java.lang.String key)
          getLocalizedMessage is used to localize the messages being used in exceptions
static java.lang.String getLocalizedMessage(java.util.logging.Logger logger, java.lang.String key, java.lang.Object[] args)
          getLocalizedMessage is used to localize the messages being used in exceptions with arguments inserted appropriately.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogFormatter

public LogFormatter()
Method Detail

convertToString

public static java.lang.String convertToString(byte[] byteArray)
Helper method to convert a byte arror to string. This is typically used for printing Xids.

Parameters:
byteArray - a byte[] value
Returns:
a String value

convertXidArrayToString

public static java.lang.String convertXidArrayToString(Xid[] xidArray)
Converts an array of xids to string that can be printed. Its a helper method.

Parameters:
xidArray - a Xid[] value
Returns:
a String value

convertPropsToString

public static java.lang.String convertPropsToString(java.util.Properties prop)
Helper method to convert properties to string.

Parameters:
prop - a Properties value
Returns:
a String value

getLocalizedMessage

public static java.lang.String getLocalizedMessage(java.util.logging.Logger logger,
                                                   java.lang.String key)
getLocalizedMessage is used to localize the messages being used in exceptions


getLocalizedMessage

public static java.lang.String getLocalizedMessage(java.util.logging.Logger logger,
                                                   java.lang.String key,
                                                   java.lang.Object[] args)
getLocalizedMessage is used to localize the messages being used in exceptions with arguments inserted appropriately.



Copyright © 2012 GlassFish Community. All Rights Reserved.