Class MessageBody
java.lang.Object
org.netpreserve.jwarc.MessageParser
org.netpreserve.jwarc.MessageBody
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,ReadableByteChannel
- Direct Known Subclasses:
DecodedBody,LengthedBody
-
Method Summary
Methods inherited from class org.netpreserve.jwarc.MessageParser
emitWarning, getErrorContext, getErrorContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.nio.channels.ReadableByteChannel
read
-
Method Details
-
empty
-
size
Returns the length of the body. This may be less than the Content-Length header if the record was truncated. Returns -1 if the length cannot be determined (such as when chunked encoding is used).- Throws:
IOException
-
position
- Throws:
IOException
-
stream
- Throws:
IOException
-
consume
- Throws:
IOException
-