hirondelle.fish.exercise.fileupload
Class Image
Object
hirondelle.fish.exercise.fileupload.Image
public final class Image
- extends Object
Model Object for an Image.
Image
public Image(Id aId,
SafeText aDescription,
SafeText aFileName,
SafeText aFileContentType,
Long aFileSize,
InputStream aInputStream)
throws ModelCtorException
- Full constructor.
- Parameters:
aDescription
- Description of the image, required, length in range 1..100.aFileName
- Name of uploaded image file, required, length in range 1..100, ends in .jpeg,
.jpg, .gif, or .png.aFileContentType
- MIME type of the uploaded file, required, length in range 1..100, must be
image/jpeg, image/gif, or image/png.aFileSize
- Size of the uploaded file, required, must be in range 1K to 50K.
- Throws:
ModelCtorException
getId
public Id getId()
getDescription
public SafeText getDescription()
getFileName
public SafeText getFileName()
getFileContentType
public SafeText getFileContentType()
getFileSize
public Long getFileSize()
getInputStream
public InputStream getInputStream()
- This is not shown in a listing. It serves to exercise the fetch of an InputStream from the database.
toString
public String toString()
- Overrides:
toString
in class Object
equals
public boolean equals(Object aThat)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright Hirondelle Systems - Generated 2013Oct19.12.26