A converter which parses and prints Timestamp objects using a specific format.
Created: May 20, 2004 Copyright: Copyright (c) 2004 Assumptions: none Requires: nothing Required by: nothing Revision History:
532533534535536537538539540541542
XmlIOConfig config = XmlIOConfig.getInstance(); // Override the default date and timestamp converters to use a different // format. DateConverter dconv = new DateConverter("yyyy-MM-dd"); config.addConverter(dconv); TimestampConverter tconv = new TimestampConverter("yyyy-MM-dd HH:mm"); config.addConverter(tconv); List plist = new LinkedList(); PropertyMap pmap = new PropertyMap("created"); plist.add(pmap);
13501351135213531354135513561357135813591360
// Configure date/timestamp formats XmlIOConfig config = XmlIOConfig.getInstance(); DateConverter dconv = new DateConverter("yyyy-MM-dd"); config.addConverter(dconv); TimestampConverter tconv = new TimestampConverter("yyyy-MM-dd HH:mm"); config.addConverter(tconv); try { xmlReader = new XmlReader(reader, "org.bifrost.xmlio.test.helpers");
14031404140514061407140814091410141114121413
// Configure date/timestamp formats XmlIOConfig config = XmlIOConfig.getInstance(); DateConverter dconv = new DateConverter("yyyy-MM-dd"); config.addConverter(dconv); TimestampConverter tconv = new TimestampConverter("yyyy-MM-dd HH:mm"); config.addConverter(tconv); List plist = new LinkedList(); PropertyMap pmap = new PropertyMap("created"); plist.add(pmap);