Package org.ametys.plugins.core.ui.user
Class ProfileImageProvider.UserProfileImage
- java.lang.Object
-
- org.ametys.plugins.core.ui.user.ProfileImageProvider.UserProfileImage
-
- Enclosing interface:
- ProfileImageProvider
public static class ProfileImageProvider.UserProfileImage extends Object
Basic structure holding necessary data representing an user profile image
-
-
Field Summary
Fields Modifier and Type Field Description private String
_filename
private InputStream
_inputstream
private Long
_length
-
Constructor Summary
Constructors Constructor Description UserProfileImage(InputStream inputstream)
ConstructorUserProfileImage(InputStream inputstream, String filename, Long length)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFilename()
Retrieves the filenameInputStream
getInputstream()
Retrieves the input streamLong
getLength()
Retrieves the length
-
-
-
Field Detail
-
_inputstream
private final InputStream _inputstream
-
-
Constructor Detail
-
UserProfileImage
public UserProfileImage(InputStream inputstream)
Constructor- Parameters:
inputstream
- The image input stream
-
UserProfileImage
public UserProfileImage(InputStream inputstream, String filename, Long length)
Constructor- Parameters:
inputstream
- The image input streamfilename
- The file name or null if unknownlength
- The file length if known
-
-
Method Detail
-
getInputstream
public InputStream getInputstream()
Retrieves the input stream- Returns:
- the input stream
-
getFilename
public String getFilename()
Retrieves the filename- Returns:
- the filename or null if not defined
-
-