AndBase开发框架  1.6
 全部  命名空间 文件 函数 变量 枚举值 
Public 成员函数 | 静态 Public 属性 | Private 属性 | 所有成员列表
com.google.gson.internal.bind.SqlDateTypeAdapter类 参考
类 com.google.gson.internal.bind.SqlDateTypeAdapter 继承关系图:

Public 成员函数

synchronized java.sql.Date read (JsonReader in) throws IOException
 
synchronized void write (JsonWriter out, java.sql.Date value) throws IOException
 

静态 Public 属性

static final TypeAdapterFactory FACTORY
 

Private 属性

final DateFormat format = new SimpleDateFormat("MMM d, yyyy")
 

详细描述

Adapter for java.sql.Date. Although this class appears stateless, it is not. DateFormat captures its time zone and locale when it is created, which gives this class state. DateFormat isn't thread safe either, so this class has to synchronize its read and write methods.

成员函数说明

synchronized java.sql.Date com.google.gson.internal.bind.SqlDateTypeAdapter.read ( JsonReader  in) throws IOException
inline
synchronized void com.google.gson.internal.bind.SqlDateTypeAdapter.write ( JsonWriter  out,
java.sql.Date  value 
) throws IOException
inline

类成员变量说明

final TypeAdapterFactory com.google.gson.internal.bind.SqlDateTypeAdapter.FACTORY
static
初始值:
= new TypeAdapterFactory() {
@SuppressWarnings("unchecked")
public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> typeToken) {
return typeToken.getRawType() == java.sql.Date.class
? (TypeAdapter<T>) new SqlDateTypeAdapter() : null;
}
}
final DateFormat com.google.gson.internal.bind.SqlDateTypeAdapter.format = new SimpleDateFormat("MMM d, yyyy")
private

该类的文档由以下文件生成: