public static class DefaultCodecProvider.UnsupportedHandler extends java.lang.Object implements CodecHandler
| Constructor and Description |
|---|
UnsupportedHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDecodeInline()
Returns
true if this handler can decode a page inline,
false otherwise. |
boolean |
canEncodePartialPage()
Returns
true if this handler can encode partial pages,
false otherwise. |
void |
decodePage(java.nio.ByteBuffer inPage,
java.nio.ByteBuffer outPage,
int pageNumber)
Decodes the given page buffer.
|
java.nio.ByteBuffer |
encodePage(java.nio.ByteBuffer page,
int pageNumber,
int pageOffset)
Encodes the given page buffer into a new page buffer and returns it.
|
public boolean canEncodePartialPage()
CodecHandlertrue if this handler can encode partial pages,
false otherwise. If this method returns false, the
CodecHandler.encodePage(java.nio.ByteBuffer, int, int) method will never be called with a non-zero
pageOffset.canEncodePartialPage in interface CodecHandlerpublic boolean canDecodeInline()
CodecHandlertrue if this handler can decode a page inline,
false otherwise. If this method returns false, the
CodecHandler.decodePage(java.nio.ByteBuffer, java.nio.ByteBuffer, int) method will always be called with separate buffers.canDecodeInline in interface CodecHandlerpublic void decodePage(java.nio.ByteBuffer inPage,
java.nio.ByteBuffer outPage,
int pageNumber)
throws java.io.IOException
CodecHandlerdecodePage in interface CodecHandlerinPage - the page to be decodedoutPage - the decoded page. if CodecHandler.canDecodeInline() is true, this will be the same buffer as inPage.pageNumber - the page number of the given pagejava.io.IOException - if an exception occurs during decodingpublic java.nio.ByteBuffer encodePage(java.nio.ByteBuffer page,
int pageNumber,
int pageOffset)
throws java.io.IOException
CodecHandlerencodePage in interface CodecHandlerpage - the page to be encoded, should not be modifiedpageNumber - the page number of the given pagepageOffset - offset within the page at which to start writing the
page datajava.io.IOException - if an exception occurs during decoding