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 BodyConsumer
public void consume(ByteCursor cursor)
consume
in interface ByteConsumer
cursor
- this is the cursor which will not be read frompublic boolean isFinished()
isFinished
in interface ByteConsumer
Copyright © 2022. All rights reserved.