|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.simpleframework.http.message.EmptyConsumer
public class EmptyConsumer
The 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 Summary | |
|---|---|
EmptyConsumer()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EmptyConsumer()
| Method Detail |
|---|
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 ByteConsumer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||