|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.healthmarketscience.jackcess.DefaultCodecProvider.UnsupportedHandler
public static class DefaultCodecProvider.UnsupportedHandler
CodecHandler implementation which always throws UnsupportedCodecException, useful for databases with unsupported encodings.
Constructor Summary | |
---|---|
DefaultCodecProvider.UnsupportedHandler()
|
Method Summary | |
---|---|
boolean |
canEncodePartialPage()
Returns true if this handler can encode partial pages,
false otherwise. |
void |
decodePage(ByteBuffer page,
int pageNumber)
Decodes the given page buffer inline. |
ByteBuffer |
encodePage(ByteBuffer page,
int pageNumber,
int pageOffset)
Encodes the given page buffer into a new page buffer and returns it. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultCodecProvider.UnsupportedHandler()
Method Detail |
---|
public boolean canEncodePartialPage()
CodecHandler
true
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 CodecHandler
public void decodePage(ByteBuffer page, int pageNumber) throws IOException
CodecHandler
decodePage
in interface CodecHandler
page
- the page to be decodedpageNumber
- the page number of the given page
IOException
- if an exception occurs during decodingpublic ByteBuffer encodePage(ByteBuffer page, int pageNumber, int pageOffset) throws IOException
CodecHandler
encodePage
in interface CodecHandler
page
- 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 data
IOException
- if an exception occurs during decoding
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |