⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 downloadfilemodel.java

📁 文件共享虚拟社区,可以实现上传下载聊天等多种信息交互.
💻 JAVA
字号:
/*
 * Created on 2005-9-7
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package fsc.models;

import fsc.util.StringProcessor;

/**
 * @author chenhao
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class DownloadFileModel {
	public static final int ROWS=1;
	public static final String TAG="DOWNLOAD_FILE_MODEL";
	private String fileName;
	
    /**
	 * @param content
	 */
	public DownloadFileModel(String content) {
		try {
			fromString(content);
			// TODO Auto-generated constructor stub
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	public String getFileName()
    {
            return fileName;
    }
    
    public void setFileName(String f)
    {
            fileName=f;
    }
    
    public String toString()
    {
            return TAG+"\n"+fileName;
    }

    public void fromString(String content) throws Exception
    {
            StringProcessor sp= new StringProcessor(content);
            setFileName(sp.getLine());
    }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -