com.wewebu.ow.server.ecmimpl.cmis.propertyclasses
Class OwISOSimpleFormatAdapter
java.lang.Object
java.text.Format
com.wewebu.ow.server.ecmimpl.cmis.propertyclasses.OwISOSimpleFormatAdapter
- All Implemented Interfaces:
- Serializable, Cloneable
public class OwISOSimpleFormatAdapter
- extends Format
ISO 8601 compliant Format adapter for SimpleDateFormat
.
Addapts Z (Zulu time zone) to simple date formats 0 offset.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
- Since:
- 4.0.0.0
- See Also:
- Serialized Form
PATTERN_FULL
protected static final String PATTERN_FULL
- See Also:
- Constant Field Values
OwISOSimpleFormatAdapter
public OwISOSimpleFormatAdapter(SimpleDateFormat zoneFormat_p,
SimpleDateFormat noZoneFormat_p)
format
public final StringBuffer format(Object obj,
StringBuffer toAppendTo,
FieldPosition pos)
- Specified by:
format
in class Format
parseObject
public final Object parseObject(String source,
ParsePosition pos)
- Specified by:
parseObject
in class Format
parseObjectByIdentification
protected Object parseObjectByIdentification(String source,
ParsePosition pos)
- Process if default parse does not work like requested.
By default use the PATTERN_FULL
format without
TimeZone, handling time zone with additional logic.
- Parameters:
source
- String representing ISO datepos
- ParsePostion used by java.text.Format
- Returns:
- Object (Date) or null if could not parse
parseTimeZone
protected TimeZone parseTimeZone(String zone)
- Create specific zone
- Parameters:
zone
- String extracted time zone
- Returns:
- TimeZone
Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.