net.anotheria.anosite.photoserver.shared.vo.TempPhotoVO Maven / Gradle / Ivy
The newest version!
package net.anotheria.anosite.photoserver.shared.vo;
import java.io.File;
import net.anotheria.anosite.photoserver.presentation.shared.PhotoDimension;
/**
* TempPhotoVO class.
*
* @author another
* @version $Id: $Id
*/
public class TempPhotoVO {
private File file;
private PhotoDimension dimension;
/**
* Getter for the field dimension
.
*
* @return a {@link net.anotheria.anosite.photoserver.presentation.shared.PhotoDimension} object.
*/
public PhotoDimension getDimension() {
return dimension;
}
/**
* Setter for the field dimension
.
*
* @param dimension a {@link net.anotheria.anosite.photoserver.presentation.shared.PhotoDimension} object.
*/
public void setDimension(PhotoDimension dimension) {
this.dimension = dimension;
}
/**
* Getter for the field file
.
*
* @return a {@link java.io.File} object.
*/
public File getFile() {
return file;
}
/**
* Setter for the field file
.
*
* @param file a {@link java.io.File} object.
*/
public void setFile(File file) {
this.file = file;
file.deleteOnExit();
}
/** {@inheritDoc} */
@Override
protected void finalize() throws Throwable {
if(file != null) {
file.delete();
}
super.finalize();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy