📄 datawriter.java.svn-base
字号:
/** * */package cn.edu.njupt.sc.data;import java.io.File;/** * @author smartzxy@gmail.com * */public interface DataWriter { /** * Update new parameter value in data file. * * @param arg * the parameter needed to be updated. * @param value * @return */ public int update(String arg, String value); /** * Insert new parameter value into data file. * * @param arg * the parameter needed to insert. * @param value * @return */ public int insert(String arg, String value); /** * Delete a specific parameter from data file. * * @param arg * the parameter needed to be deleted. * @return */ public int delet(String arg); /** * Save modification into data file. * * @return 0 if save successfully, or -1 if fail. */ public int save(); /** * Close this writer. */ public void close(); /** * Set data file source from String object. * * @param file */ public void setSource(String file); /** * Set data file source from File object. * * @param file */ public void setSource(File file);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -