Helius
2021-06-16 5728be2af515b2200e782aa201ca5d4d67d9ea47
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package com.ibeetl.admin.core.file;
 
import java.io.OutputStream;
 
public abstract class FileItem {
    protected Long id;
    protected String name;
    protected String path;
    boolean isTemp = false;
    
    public abstract OutputStream openOutpuStream();
    
    public abstract void copy(OutputStream os);
    
    
    public abstract boolean delete();
    
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getPath() {
        return path;
    }
    public void setPath(String path) {
        this.path = path;
    }
 
    public boolean isTemp() {
        return isTemp;
    }
 
    public void setTemp(boolean isTemp) {
        this.isTemp = isTemp;
    }
 
    public Long getId() {
        return id;
    }
 
    public void setId(Long id) {
        this.id = id;
    }
    
    
}