Package org.bremersee.minio
Class MinioMultipartFileImpl
java.lang.Object
org.bremersee.minio.MinioMultipartFileImpl
- All Implemented Interfaces:
MinioMultipartFile,MinioObjectId,MinioObjectInfo,org.springframework.core.io.InputStreamSource,org.springframework.web.multipart.MultipartFile
The minio multipart file implementation.
- Author:
- Christian Bremer
-
Constructor Summary
ConstructorsConstructorDescriptionMinioMultipartFileImpl(MinioOperations minioOperations, String region, io.minio.StatObjectResponse objectStatus) Instantiates a new minio multipart file.MinioMultipartFileImpl(MinioOperations minioOperations, String region, String bucket, io.minio.messages.Item item) Instantiates a new minio multipart file.MinioMultipartFileImpl(MinioOperations minioOperations, MinioObjectInfo minioObjectInfo) Instantiates a new minio multipart file. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bremersee.minio.MinioObjectId
getVersionIdMethods inherited from interface org.bremersee.minio.MinioObjectInfo
getBucket, getRegionMethods inherited from interface org.springframework.web.multipart.MultipartFile
getResource, transferTo
-
Constructor Details
-
MinioMultipartFileImpl
Instantiates a new minio multipart file.- Parameters:
minioOperations- the minio operationsminioObjectInfo- 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 operationsregion- the regionobjectStatus- 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 operationsregion- the regionbucket- the bucketitem- the item
-
-
Method Details
-
getObjectStatus
protected io.minio.StatObjectResponse getObjectStatus()Gets object status.- Returns:
- the object status
-
getName
Description copied from interface:MinioObjectIdGets name.- Specified by:
getNamein interfaceMinioObjectId- Specified by:
getNamein interfaceorg.springframework.web.multipart.MultipartFile- Returns:
- the name
-
getOriginalFilename
- Specified by:
getOriginalFilenamein interfaceorg.springframework.web.multipart.MultipartFile
-
getContentType
- Specified by:
getContentTypein interfaceorg.springframework.web.multipart.MultipartFile
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceorg.springframework.web.multipart.MultipartFile
-
getSize
public long getSize()- Specified by:
getSizein interfaceorg.springframework.web.multipart.MultipartFile
-
getBytes
- Specified by:
getBytesin interfaceorg.springframework.web.multipart.MultipartFile- Throws:
IOException
-
getInputStream
- Specified by:
getInputStreamin interfaceorg.springframework.core.io.InputStreamSource- Specified by:
getInputStreamin interfaceorg.springframework.web.multipart.MultipartFile
-
transferTo
- Specified by:
transferToin interfaceorg.springframework.web.multipart.MultipartFile- Throws:
IOExceptionIllegalStateException
-
getEtag
Description copied from interface:MinioObjectInfoGets etag.- Specified by:
getEtagin interfaceMinioObjectInfo- Returns:
- the etag
-
getLastModified
Description copied from interface:MinioObjectInfoGets last modified time.- Specified by:
getLastModifiedin interfaceMinioObjectInfo- Returns:
- the last modified time
-