Package org.eclipse.jetty.util.ajax
Class JSONDateConvertor
java.lang.Object
org.eclipse.jetty.util.ajax.JSONDateConvertor
- All Implemented Interfaces:
- JSON.Convertor
Convert a 
Date to JSON.
 If fromJSON is true in the constructor, the JSON generated will
 be of the form {class="java.util.Date",value="1/1/1970 12:00 GMT"}
 If fromJSON is false, then only the string value of the date is generated.- 
Constructor SummaryConstructorsConstructorDescriptionJSONDateConvertor(boolean fromJSON) JSONDateConvertor(String format, TimeZone zone, boolean fromJSON) JSONDateConvertor(String format, TimeZone zone, boolean fromJSON, Locale locale) 
- 
Method Summary
- 
Constructor Details- 
JSONDateConvertorpublic JSONDateConvertor()
- 
JSONDateConvertorpublic JSONDateConvertor(boolean fromJSON) 
- 
JSONDateConvertor
- 
JSONDateConvertor
 
- 
- 
Method Details- 
fromJSON- Specified by:
- fromJSONin interface- JSON.Convertor
 
- 
toJSON- Specified by:
- toJSONin interface- JSON.Convertor
 
 
-