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
  • Constructor Details

    • 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 stream
      filename - The file name or null if unknown
      length - The file length if known
  • Method Details

    • getInputstream

      Retrieves the input stream
      Returns:
      the input stream
    • getFilename

      public String getFilename()
      Retrieves the filename
      Returns:
      the filename or null if not defined
    • getLength

      public Long getLength()
      Retrieves the length
      Returns:
      the length or null if unknown