Package com.google.cloud.storage
Class RequestBody
java.lang.Object
com.google.cloud.storage.RequestBody
The data of a single
UploadPart in a GCS XML MPU.
Instances of this class are thread-safe and immutable.
-
Method Summary
Modifier and TypeMethodDescriptionstatic RequestBodyempty()Create a new empty RequestBody.static RequestBodyof(ByteBuffer... buffers) Create a new RequestBody from the givenByteBuffers.static RequestBodyof(ByteBuffer[] srcs, int srcsOffset, int srcsLength) Create a new RequestBody from the givenByteBuffers.static RequestBodyCreate a new RequestBody from the givenPath.
-
Method Details
-
empty
Create a new empty RequestBody. -
of
Create a new RequestBody from the givenByteBuffers. -
of
Create a new RequestBody from the givenByteBuffers. -
of
Create a new RequestBody from the givenPath.- Throws:
IOException
-