FileAttachmentWrapper.java 1.1 KB
/*
 * 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;
    }
}