Class FileWithMetadata


  • public class FileWithMetadata
    extends java.lang.Object
    A file and its associated metadata.
    • Method Detail

      • data

        public java.io.InputStream data()
        The data / contents of the file.
        Returns:
        the contents of the file
      • filename

        public java.lang.String filename()
        The filename for file.
        Returns:
        the filename
      • contentType

        public java.lang.String contentType()
        The content type of file. Values for this parameter can be obtained from the HttpMediaType class.
        Returns:
        the content-type associated with the file