Class ImageProfil
- java.lang.Object
-
- org.silverpeas.web.directory.servlets.ImageProfil
-
public class ImageProfil extends Object
-
-
Constructor Summary
Constructors Constructor Description ImageProfil(String photo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
exist()
InputStream
getImage()
String
getMimeType()
Gets the MIME type of the image.boolean
isImage()
void
removeImage()
remove existing imagevoid
saveImage(InputStream data)
In case of unit upload
-
-
-
Constructor Detail
-
ImageProfil
public ImageProfil(String photo)
-
-
Method Detail
-
isImage
public boolean isImage()
-
getMimeType
public String getMimeType()
Gets the MIME type of the image.- Returns:
- the MIME type of the image.
-
saveImage
public void saveImage(InputStream data) throws IOException
In case of unit upload- Parameters:
data
-- Throws:
IOException
-
removeImage
public void removeImage()
remove existing image
-
getImage
public InputStream getImage() throws IOException
- Throws:
IOException
-
exist
public boolean exist()
-
-