public ConcurrentDateFormat(String format, Locale locale, TimeZone timezone) { this.format = format; this.locale = locale; this.timezone = timezone; SimpleDateFormat initial = createInstance(); queue.add(initial); }
public static String formatRfc1123(Date date) { return FORMAT_RFC1123.format(date); }
@Override public final String getLastModifiedHttp() { return ConcurrentDateFormat.formatRfc1123(new Date(getLastModified())); }
private void writeFileHtml( final StringBuilder builder, final boolean shade, final Entry entry, final boolean isDirectory ) { builder.append("<tr"); if (shade) { builder.append(" bgcolor=\"#eeeeee\""); } builder.append(">"); builder.append("<td align=\"left\"> "); builder.append("<a href=\"").append(entry.getUrl()).append("\">"); builder.append("<tt>").append(entry.getName()).append("</tt></a></td>"); builder.append("<td align=\"right\"><tt>"); if (isDirectory) { builder.append("-"); } else { builder.append(FileUtils.byteCountToDisplaySize(entry.getSize())); } builder.append("</tt></td>"); final String lastModified = ConcurrentDateFormat.formatRfc1123(entry.getLastModified()); builder.append("<td align=\"right\"><tt>").append(lastModified).append("</tt></td>"); builder.append("</tr>"); }
public ConcurrentDateFormat(String format, Locale locale, TimeZone timezone) { this.format = format; this.locale = locale; this.timezone = timezone; SimpleDateFormat initial = createInstance(); queue.add(initial); }
public static String formatRfc1123(Date date) { return FORMAT_RFC1123.format(date); }
public ConcurrentDateFormat(String format, Locale locale, TimeZone timezone) { this.format = format; this.locale = locale; this.timezone = timezone; SimpleDateFormat initial = createInstance(); queue.add(initial); }
public static String formatRfc1123(Date date) { return FORMAT_RFC1123.format(date); }
public String format(Date date) { SimpleDateFormat sdf = queue.poll(); if (sdf == null) { sdf = createInstance(); } String result = sdf.format(date); queue.add(sdf); return result; }
/** * Get creation date in ISO format. */ private String getISOCreationDate(long creationDate) { return creationDateFormat.format(new Date(creationDate)); }
public String format(Date date) { SimpleDateFormat sdf = queue.poll(); if (sdf == null) { sdf = createInstance(); } String result = sdf.format(date); queue.add(sdf); return result; }
public String format(Date date) { SimpleDateFormat sdf = queue.poll(); if (sdf == null) { sdf = createInstance(); } String result = sdf.format(date); queue.add(sdf); return result; }