Class RequestBody (2.60.0)

public final class RequestBody

The data of a single UploadPart in a GCS XML MPU.

Instances of this class are thread-safe and immutable. See Also: https://cloud.google.com/storage/docs/multipart-uploads#upload_parts

Inheritance

java.lang.Object > RequestBody

Static Methods

empty()

public static RequestBody empty()

Create a new empty RequestBody.

Returns
Type Description
RequestBody

of(ByteBuffer[] buffers)

public static RequestBody of(ByteBuffer[] buffers)

Create a new RequestBody from the given ByteBuffers.

Parameter
Name Description
buffers ByteBuffer[]
Returns
Type Description
RequestBody

of(ByteBuffer[] srcs, int srcsOffset, int srcsLength)

public static RequestBody of(ByteBuffer[] srcs, int srcsOffset, int srcsLength)

Create a new RequestBody from the given ByteBuffers.

Parameters
Name Description
srcs ByteBuffer[]
srcsOffset int
srcsLength int
Returns
Type Description
RequestBody

of(Path path)

public static RequestBody of(Path path)

Create a new RequestBody from the given Path.

Parameter
Name Description
path Path
Returns
Type Description
RequestBody
Exceptions
Type Description
IOException