com.jdroid.javaweb.domain.FileEntity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jdroid-java-webapp Show documentation
Show all versions of jdroid-java-webapp Show documentation
Jdroid library for Java Web apps
The newest version!
package com.jdroid.javaweb.domain;
import com.jdroid.java.domain.Entity;
public class FileEntity extends Entity {
private String name;
private byte[] content;
/**
* Default constructor.
*/
protected FileEntity() {
// Do nothing, is required by hibernate
}
public FileEntity(byte[] content, String name) {
this.content = content;
this.name = name;
}
public void modify(byte[] content, String name) {
this.content = content;
this.name = name;
}
public byte[] getContent() {
return content;
}
public String getName() {
return name;
}
}