Package com.pkgrove.pkgrovekit.storage
Class ObjectContent
-
- All Implemented Interfaces:
-
java.lang.AutoCloseable
public final class ObjectContent implements AutoCloseable
A streaming object read. stream never holds the whole object; close() releases the underlying connection/resources even when not fully consumed.
-
-
Field Summary
Fields Modifier and Type Field Description private final ObjectMetadatametadata
-
Constructor Summary
Constructors Constructor Description ObjectContent(ObjectMetadata metadata, InputStream body)
-
Method Summary
Modifier and Type Method Description final ObjectMetadatagetMetadata()final InputStreamstream()Unitclose()-
-
Constructor Detail
-
ObjectContent
ObjectContent(ObjectMetadata metadata, InputStream body)
-
-
Method Detail
-
getMetadata
final ObjectMetadata getMetadata()
-
stream
final InputStream stream()
-
-
-
-