com.baidu.sapi2.loginshare
类 FileStorage

java.lang.Object
  继承者 com.baidu.sapi2.loginshare.FileStorage
所有已实现的接口:
IDataStorage

public class FileStorage
extends Object
implements IDataStorage

文件存储管理器 使用"data/data/pkg_name/files/android_sapi_loginshare"作为存储文件。

作者:
yuankai02

方法摘要
 void close()
          关闭占用资源
 boolean commit()
          提交动作,调用本接口使内存数据固化到磁盘上 本接口比较耗时
 org.json.JSONArray getJSONArray(String key)
          Add by DongJian(2013-04-01)
 String getString(String key)
          返回key对应的字符串值,如果不存在则返回空
 void put(String key, org.json.JSONArray array)
          Add by DongJian(2013-04-01)
 void put(String key, String value)
          string
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详细信息

put

public void put(String key,
                String value)
从接口 IDataStorage 复制的描述
string

指定者:
接口 IDataStorage 中的 put

getString

public String getString(String key)
从接口 IDataStorage 复制的描述
返回key对应的字符串值,如果不存在则返回空

指定者:
接口 IDataStorage 中的 getString
返回:

commit

public boolean commit()
从接口 IDataStorage 复制的描述
提交动作,调用本接口使内存数据固化到磁盘上 本接口比较耗时

指定者:
接口 IDataStorage 中的 commit
返回:
是否执行成功

close

public void close()
从接口 IDataStorage 复制的描述
关闭占用资源

指定者:
接口 IDataStorage 中的 close

put

public void put(String key,
                org.json.JSONArray array)
Add by DongJian(2013-04-01)

指定者:
接口 IDataStorage 中的 put

getJSONArray

public org.json.JSONArray getJSONArray(String key)
Add by DongJian(2013-04-01)

指定者:
接口 IDataStorage 中的 getJSONArray
返回:


Copyright © 2013. All Rights Reserved.