FileAttachmentWrapper.java
1.1 KB
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
49
50
51
52
53
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.forms.common.service;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
public class FileAttachmentWrapper {
private String uuid;
private String fileName;
private String contentType;
private byte[] bytes;
public FileAttachmentWrapper(String fileName, String contentType, byte[] bytes) {
this.fileName = fileName;
this.contentType = contentType;
this.bytes = bytes;
}
public String getFileName() {
return this.fileName;
}
public String getContentType() {
return this.contentType;
}
public void setFileName(String fileName) {
this.fileName = fileName;
}
public void setContentType(String contentType) {
this.contentType = contentType;
}
public InputStream getInputStream() {
return new ByteArrayInputStream(this.bytes);
}
public byte[] getValue() {
return this.bytes;
}
public String getUuid() {
return this.uuid;
}
public void setUuid(String uuid) {
this.uuid = uuid;
}
}