コード例 #1
0
 /** Writes an Atom updated tag. */
 public void writeUpdated(long updated) throws XMLStreamException {
   String updatedStr = DateTimeHelper.formatHttpDateTime(updated);
   XMLUtils.write(
       getWriter(), XMLConstants.PREFIX_APP, XMLConstants.NAMESPACE_APP, "edited", updatedStr);
   XMLUtils.write(
       getWriter(), XMLConstants.PREFIX_ATOM, XMLConstants.NAMESPACE_ATOM, "updated", updatedStr);
 }
コード例 #2
0
 /** Writes an Atom published tag. */
 public void writePublished(long published) throws XMLStreamException {
   XMLUtils.write(
       getWriter(),
       XMLConstants.PREFIX_ATOM,
       XMLConstants.NAMESPACE_ATOM,
       "published",
       DateTimeHelper.formatHttpDateTime(published));
 }