public class OwCMISISOSimpleFormatAdapter extends Format
ISO 8601 compliant Format adapter for SimpleDateFormat
.
Adapts 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
Format.Field
Modifier and Type | Field and Description |
---|---|
protected static String |
PATTERN_FULL |
protected static String |
PATTERN_FULL_ZONE |
Constructor and Description |
---|
OwCMISISOSimpleFormatAdapter() |
OwCMISISOSimpleFormatAdapter(SimpleDateFormat zoneFormat_p,
SimpleDateFormat noZoneFormat_p,
String currentOffset) |
OwCMISISOSimpleFormatAdapter(String currentOffset) |
Modifier and Type | Method and Description |
---|---|
StringBuffer |
format(Object obj,
StringBuffer toAppendTo,
FieldPosition pos) |
Object |
parseObject(String source,
ParsePosition pos) |
protected Object |
parseObjectByIdentification(String source,
ParsePosition pos)
Process if default parse does not work like requested.
|
protected TimeZone |
parseTimeZone(String zone)
Create specific zone
|
clone, format, formatToCharacterIterator, parseObject
protected static final String PATTERN_FULL
protected static final String PATTERN_FULL_ZONE
public OwCMISISOSimpleFormatAdapter()
public OwCMISISOSimpleFormatAdapter(String currentOffset)
public OwCMISISOSimpleFormatAdapter(SimpleDateFormat zoneFormat_p, SimpleDateFormat noZoneFormat_p, String currentOffset)
public final StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition pos)
public final Object parseObject(String source, ParsePosition pos)
parseObject
in class Format
protected Object parseObjectByIdentification(String source, ParsePosition pos)
By default use the PATTERN_FULL
format without
TimeZone, handling time zone with additional logic.
source
- String representing ISO datepos
- ParsePostion used by java.text.FormatCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.