View Javadoc

1   /*
2    * 
3    * 
4    */
5   package example.filestorage;
6   
7   /***
8    * 
9    * @author Sean C. Sullivan
10   * 
11   * 
12   */
13  public class FileInfo
14  {
15  	private long id = -1;
16  	private String filename;
17  	private long fileSize;
18  	
19  	public FileInfo()
20  	{
21  		
22  	}
23  	
24  	public void setFilename(String name)
25  	{
26  		this.filename = name;
27  	}
28  	
29  	public String getFilename()
30  	{
31  		return this.filename;
32  	}
33  	
34  	public long getFileSize()
35  	{
36  		return fileSize;
37  	}
38  	
39  	public void setFileSize(long s)
40  	{
41  		fileSize = s;
42  	}
43  	
44  	public void setId(long id)
45  	{
46  		this.id = id;
47  	}
48  	
49  	public long getId()
50  	{
51  		return this.id;
52  	}
53  	
54  	public String toString()
55  	{
56  		return this.getFilename() 
57  				+ ", "
58  				+ getFileSize()
59  				+ " bytes, id="
60  				+ getId();
61  	}
62  	
63  }