|
Jetty example source code file (BufferDateCache.java)
The Jetty BufferDateCache.java source codepackage org.mortbay.io; import java.text.DateFormatSymbols; import java.util.Locale; import org.mortbay.util.DateCache; public class BufferDateCache extends DateCache { Buffer _buffer; String _last; public BufferDateCache() { super(); } public BufferDateCache(String format, DateFormatSymbols s) { super(format,s); } public BufferDateCache(String format, Locale l) { super(format,l); } public BufferDateCache(String format) { super(format); } public synchronized Buffer formatBuffer(long date) { String d = super.format(date); if (d==_last) return _buffer; _last=d; _buffer=new ByteArrayBuffer(d); return _buffer; } } Other Jetty examples (source code examples)Here is a short list of links related to this Jetty BufferDateCache.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.