org.epics.pvmanager.util
Class TimeStampFormat

java.lang.Object
  extended by java.text.Format
      extended by org.epics.pvmanager.util.TimeStampFormat
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

Deprecated. This class is being retired in favor of TimestampFormat

@Deprecated
public class TimeStampFormat
extends java.text.Format

Implements a formatting class to format timestamps. The format String is exactly the one supported by the SimpleDateFormat, except that it supports the nanosecond field identified by N.

For example, the pattern "yyyy-MM-dd'T'HH:mm:ss.NNNNNNNNNZ" formats to 2001-07-04T12:08:56.012345678-0700

Parsing is not currently supported.

Author:
carcassi
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.text.Format
java.text.Format.Field
 
Constructor Summary
TimeStampFormat()
          Deprecated. Creates a new TimeStampFormat using the current Locale.
TimeStampFormat(java.lang.String pattern)
          Deprecated. Creates a new TimeStampFormat using the given pattern and the symbols from the current Locale.
TimeStampFormat(java.lang.String pattern, java.text.DateFormatSymbols symbols)
          Deprecated. Creates a new TimeStampFormat using the given pattern and symbols.
TimeStampFormat(java.lang.String pattern, java.util.Locale locale)
          Deprecated. Creates a new TimeStampFormat using the given pattern and the symbols from the current Locale.
 
Method Summary
 java.lang.StringBuffer format(java.lang.Object obj, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)
          Deprecated.  
 java.lang.String format(TimeStamp timeStamp)
          Deprecated. Formats the given TimeStamp.
 java.util.TimeZone getTimeZone()
          Deprecated. Returns the time zone used to format the timestamp.
 java.lang.Object parseObject(java.lang.String source, java.text.ParsePosition pos)
          Deprecated. NB: Not supported
 void setTimeZome(java.util.TimeZone zone)
          Deprecated. Changes the time zone used to format the timestamp.
 
Methods inherited from class java.text.Format
clone, format, formatToCharacterIterator, parseObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeStampFormat

public TimeStampFormat()
Deprecated. 
Creates a new TimeStampFormat using the current Locale.


TimeStampFormat

public TimeStampFormat(java.lang.String pattern)
Deprecated. 
Creates a new TimeStampFormat using the given pattern and the symbols from the current Locale.

Parameters:
pattern - the pattern describing the date and time format

TimeStampFormat

public TimeStampFormat(java.lang.String pattern,
                       java.text.DateFormatSymbols symbols)
Deprecated. 
Creates a new TimeStampFormat using the given pattern and symbols.

Parameters:
pattern - the pattern describing the date and time format
symbols - symbols to be used in formatting

TimeStampFormat

public TimeStampFormat(java.lang.String pattern,
                       java.util.Locale locale)
Deprecated. 
Creates a new TimeStampFormat using the given pattern and the symbols from the current Locale.

Parameters:
pattern - the pattern describing the date and time format
locale - the Locale to be used
Method Detail

setTimeZome

public void setTimeZome(java.util.TimeZone zone)
Deprecated. 
Changes the time zone used to format the timestamp.

Parameters:
zone - a new time zone

getTimeZone

public java.util.TimeZone getTimeZone()
Deprecated. 
Returns the time zone used to format the timestamp.

Returns:
the current time zone

format

public java.lang.StringBuffer format(java.lang.Object obj,
                                     java.lang.StringBuffer toAppendTo,
                                     java.text.FieldPosition pos)
Deprecated. 
Specified by:
format in class java.text.Format

format

public java.lang.String format(TimeStamp timeStamp)
Deprecated. 
Formats the given TimeStamp.

Parameters:
timeStamp - a TimeStamp
Returns:
the formatted String

parseObject

public java.lang.Object parseObject(java.lang.String source,
                                    java.text.ParsePosition pos)
Deprecated. 
NB: Not supported

Specified by:
parseObject in class java.text.Format