TPTP 4.0.0 Monitoring Tools Project
Public API Specification

org.eclipse.hyades.logging.adapter.util
Class TimeParser

java.lang.Object
  extended byorg.eclipse.hyades.logging.adapter.util.TimeParser

Deprecated. This is really an internal class of the Generic Log Adapter run-time and should not be extended or called by external applications.

public class TimeParser
extends java.lang.Object

The class parses a time stamp based on a time format string and a locale. The java.text.SimpleDateFormat class does the actual parsing.


Constructor Summary
TimeParser(java.lang.String timeFormat, java.util.Locale locale)
          Deprecated. Construct a TimeParser with specified time format string and locale.
 
Method Summary
 long parse(java.lang.String strTime)
          Deprecated. Converts the formatted time string to milliseconds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeParser

public TimeParser(java.lang.String timeFormat,
                  java.util.Locale locale)
           throws AdapterException
Deprecated. 
Construct a TimeParser with specified time format string and locale.

Parameters:
timeFormat - - time format string
locale - - locale for time parsing
Throws:
AdapterException - if the time format string is not valid.
Method Detail

parse

public long parse(java.lang.String strTime)
           throws AdapterException
Deprecated. 
Converts the formatted time string to milliseconds

Parameters:
strTime -
Returns:
value of time in milliseconds as a long
Throws:
AdapterException

TPTP 4.0.0 Monitoring Tools Project
Public API Specification