org.opennms.netmgt.syslogd
Class SyslogTimeStamp
java.lang.Object
java.text.Format
org.opennms.netmgt.syslogd.SyslogTimeStamp
- All Implemented Interfaces:
- Serializable, Cloneable
public class SyslogTimeStamp
- extends Format
The TimestampFormat class implements the code necessary to format and parse
syslog timestamps, which come in the flavor of 'Sep 14 15:43:06'.
- Version:
- $Revision: 1.1.1.1 $
- Author:
- Timothy Gerard Endres, time@ice.com.
- See Also:
- Serialized Form
DEFAULT_GMT_TZID
public static final String DEFAULT_GMT_TZID
- See Also:
- Constant Field Values
SyslogTimeStamp
public SyslogTimeStamp()
getInstance
public static final SyslogTimeStamp getInstance()
format
public String format(Date date)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
formatTimeZone
public String formatTimeZone(Date date,
TimeZone tz)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
format
public StringBuffer format(Object date,
StringBuffer appendTo,
FieldPosition fieldPos)
throws IllegalArgumentException
- Specified by:
format in class Format
- Throws:
IllegalArgumentException
parse
public Date parse(String source)
throws ParseException
- Throws:
ParseException
parseObject
public Object parseObject(String source,
ParsePosition pos)
- Specified by:
parseObject in class Format
parseTimestamp
public Date parseTimestamp(String source)
throws ParseException
- Throws:
ParseException
Copyright © 2009. All Rights Reserved.