| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CodecHandler
Interface for a handler which can encode/decode a specific access page encoding.
| 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.  | 
| Method Detail | 
|---|
boolean canEncodePartialPage()
true if this handler can encode partial pages,
 false otherwise.  If this method returns false, the
 encodePage(java.nio.ByteBuffer, int, int) method will never be called with a non-zero
 pageOffset.
void decodePage(ByteBuffer page,
                int pageNumber)
                throws IOException
page - the page to be decodedpageNumber - the page number of the given page
IOException - if an exception occurs during decoding
ByteBuffer encodePage(ByteBuffer page,
                      int pageNumber,
                      int pageOffset)
                      throws IOException
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 | |||||||||