public interface Body
Modifier and Type | Method and Description |
---|---|
static Body |
body(Buffer buffer)
Create a new
Body instance. |
static Body |
body(ReadStream<Buffer> stream)
Create a new
Body instance. |
static Body |
body(ReadStream<Buffer> stream,
long len)
Create a new
Body instance. |
long |
length()
Get length of the
Body . |
ReadStream<Buffer> |
stream()
Get stream of the
Body . |
static Body body(ReadStream<Buffer> stream, long len)
Body
instance.stream
- the ReadStream
of the bodylen
- the determined length of the bodystatic Body body(ReadStream<Buffer> stream)
Body
instance.stream
- the ReadStream
of the bodystatic Body body(Buffer buffer)
Body
instance.buffer
- the Buffer
of the bodylong length()
Body
.-1
if that can't be determinedReadStream<Buffer> stream()
Body
.Copyright © 2023 Eclipse. All rights reserved.