Class MinioMultipartFileImpl

    • Constructor Detail

      • MinioMultipartFileImpl

        public MinioMultipartFileImpl​(MinioOperations minioOperations,
                                      MinioObjectInfo minioObjectInfo)
        Instantiates a new minio multipart file.
        Parameters:
        minioOperations - the minio operations
        minioObjectInfo - the minio object info
      • MinioMultipartFileImpl

        public MinioMultipartFileImpl​(MinioOperations minioOperations,
                                      String region,
                                      io.minio.StatObjectResponse objectStatus)
        Instantiates a new minio multipart file.
        Parameters:
        minioOperations - the minio operations
        region - the region
        objectStatus - the object status
      • MinioMultipartFileImpl

        public MinioMultipartFileImpl​(MinioOperations minioOperations,
                                      String region,
                                      String bucket,
                                      io.minio.messages.Item item)
        Instantiates a new minio multipart file.
        Parameters:
        minioOperations - the minio operations
        region - the region
        bucket - the bucket
        item - the item
    • Method Detail

      • getObjectStatus

        protected io.minio.StatObjectResponse getObjectStatus()
        Gets object status.
        Returns:
        the object status
      • getName

        @NonNull
        public String getName()
        Description copied from interface: MinioObjectId
        Gets name.
        Specified by:
        getName in interface MinioObjectId
        Specified by:
        getName in interface org.springframework.web.multipart.MultipartFile
        Returns:
        the name
      • getOriginalFilename

        public String getOriginalFilename()
        Specified by:
        getOriginalFilename in interface org.springframework.web.multipart.MultipartFile
      • getContentType

        public String getContentType()
        Specified by:
        getContentType in interface org.springframework.web.multipart.MultipartFile
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface org.springframework.web.multipart.MultipartFile
      • getSize

        public long getSize()
        Specified by:
        getSize in interface org.springframework.web.multipart.MultipartFile
      • getBytes

        @NonNull
        public byte[] getBytes()
                        throws IOException
        Specified by:
        getBytes in interface org.springframework.web.multipart.MultipartFile
        Throws:
        IOException
      • getInputStream

        @NonNull
        public InputStream getInputStream()
        Specified by:
        getInputStream in interface org.springframework.core.io.InputStreamSource
        Specified by:
        getInputStream in interface org.springframework.web.multipart.MultipartFile