Class ObjectResult
-
- All Implemented Interfaces:
public final class ObjectResultResult of retrieving an object from the object store
-
-
Field Summary
Fields Modifier and Type Field Description private final ObjectStoreInfoinfoprivate final InputStreaminputStream
-
Constructor Summary
Constructors Constructor Description ObjectResult(ObjectStoreInfo info, InputStream inputStream)
-
Method Summary
Modifier and Type Method Description final ObjectStoreInfogetInfo()The object information final InputStreamgetInputStream()The input stream for reading the object data final ByteArrayreadAllBytes()Read all data from the object as a byte arrayWARNING: This loads the entire object into memory. -
-
Constructor Detail
-
ObjectResult
ObjectResult(ObjectStoreInfo info, InputStream inputStream)
-
-
Method Detail
-
getInfo
final ObjectStoreInfo getInfo()
The object information
-
getInputStream
final InputStream getInputStream()
The input stream for reading the object data
-
readAllBytes
final ByteArray readAllBytes()
Read all data from the object as a byte array
WARNING: This loads the entire object into memory. For large objects, use the inputStream directly for streaming.
-
-
-
-