public abstract class MessageBody extends MessageParser implements ReadableByteChannel
| Modifier and Type | Method and Description |
|---|---|
void |
consume() |
static MessageBody |
empty() |
abstract long |
position() |
long |
size()
Returns the length of the body.
|
InputStream |
stream() |
emitWarning, getErrorContext, getErrorContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadpublic static MessageBody empty()
public long size()
throws IOException
IOExceptionpublic abstract long position()
throws IOException
IOExceptionpublic InputStream stream() throws IOException
IOExceptionpublic void consume()
throws IOException
IOExceptionCopyright © 2024. All rights reserved.