All Downloads are FREE. Search and download functionalities are using the official Maven repository.

model.ContentAttachment Maven / Gradle / Ivy

There is a newer version: 1.3.9
Show newest version
package model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

@JsonIgnoreProperties(ignoreUnknown = true)
public class ContentAttachment {
    private byte[] data;
    private String fileName;

    public ContentAttachment() {}

    public ContentAttachment(String fileName, byte[] data) {
        this.data = data;
        this.fileName = fileName;
    }

    public byte[] getData() {
        return data;
    }

    public void setData(byte[] data) {
        this.data = data;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public int getSize() {
        return data.length;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy