Class DecodedBody
java.lang.Object
org.netpreserve.jwarc.MessageParser
org.netpreserve.jwarc.MessageBody
org.netpreserve.jwarc.DecodedBody
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,ReadableByteChannel
A message body which decodes content on-the-fly using the specified encoding.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static DecodedBodycreate(ReadableByteChannel channel, DecodedBody.Encoding encoding) booleanisOpen()longposition()intread(ByteBuffer dst) Methods inherited from class org.netpreserve.jwarc.MessageBody
consume, empty, size, streamMethods inherited from class org.netpreserve.jwarc.MessageParser
emitWarning, getErrorContext, getErrorContext
-
Method Details
-
create
public static DecodedBody create(ReadableByteChannel channel, DecodedBody.Encoding encoding) throws IOException - Throws:
IOException
-
position
- Specified by:
positionin classMessageBody- Throws:
IOException
-
read
- Throws:
IOException
-
isOpen
public boolean isOpen() -
close
- Throws:
IOException
-