public class EmptyConsumer extends Object implements BodyConsumer
EmptyConsumer object is used to represent a body
of zero length. This is the most common body consumer created as
it represents the body for GET messages that have nothing within
the body part.| Constructor and Description |
|---|
EmptyConsumer() |
| Modifier and Type | Method and Description |
|---|---|
void |
consume(ByteCursor cursor)
This method will not consume any bytes from the cursor.
|
Body |
getBody()
This is used to acquire the body that has been consumed.
|
boolean |
isFinished()
This will return true immediately.
|
public Body getBody()
Attachment objects.
Each part can then be read as an individual message.getBody in interface BodyConsumerpublic void consume(ByteCursor cursor)
consume in interface ByteConsumercursor - this is the cursor which will not be read frompublic boolean isFinished()
isFinished in interface ByteConsumerCopyright © 2025. All rights reserved.