Class ResourceAvatarSupplier

    • Constructor Detail

      • ResourceAvatarSupplier

        public ResourceAvatarSupplier​(String path)
      • ResourceAvatarSupplier

        public ResourceAvatarSupplier​(String contentType,
                                      String path)
    • Method Detail

      • open

        @NotNull
        public @NotNull InputStream open()
                                  throws IOException
        Description copied from interface: AvatarSupplier
        Provides an InputStream to read the avatar. Each call to this method will produce a new stream.
        Returns:
        a stream from the avatar
        Throws:
        IOException - in case the avatar could not be opened or read
      • getResource

        public org.springframework.core.io.ClassPathResource getResource()