| | |
| | | private Boolean isHidden; |
| | | private Long lastModified; |
| | | private Long length; |
| | | private String mimetype; |
| | | private String mimetype = "text"; |
| | | |
| | | /** |
| | | * create a new instance of <code>FileRef</code>. Note that the created FileRef is |
| | |
| | | this.isHidden = isHidden; |
| | | this.lastModified = lastModified; |
| | | this.length = length; |
| | | if(isDirectory()) { |
| | | this.mimetype = " "; |
| | | } |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | public void setMimetype(String mimetype) { |
| | | this.mimetype = mimetype; |
| | | if(mimetype != null && mimetype.length() > 1) { |
| | | this.mimetype = mimetype; |
| | | } |
| | | } |
| | | |
| | | /** |