CodecProvider for details on a more useful implementation.
| Modifier and Type | Class and Description |
|---|---|
| public static class | DefaultCodecProvider.
CodecHandler implementation which does nothing, useful for databases with no extra encoding. |
| public static class | DefaultCodecProvider.
CodecHandler implementation which always throws UnsupportedCodecException, useful for databases with unsupported encodings. |
| Modifier and Type | Field and Description |
|---|---|
| public static final CodecHandler | DUMMY_HANDLER
common instance of |
| public static final CodecProvider | INSTANCE
common instance of DefaultCodecProvider |
| public static final CodecHandler | UNSUPPORTED_HANDLER
common instance of |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public CodecHandler | createHandler(PageChannel channel, Charset charset)
Implements io. Returns a new CodecHandler for the database associated with the given PageChannel. |
| DUMMY_HANDLER | back to summary |
|---|---|
| public static final CodecHandler DUMMY_HANDLER common instance of | |
| INSTANCE | back to summary |
|---|---|
| public static final CodecProvider INSTANCE common instance of DefaultCodecProvider | |
| UNSUPPORTED_HANDLER | back to summary |
|---|---|
| public static final CodecHandler UNSUPPORTED_HANDLER common instance of | |
| DefaultCodecProvider | back to summary |
|---|---|
| public DefaultCodecProvider() | |
| createHandler | back to summary |
|---|---|
| public CodecHandler createHandler(PageChannel channel, Charset charset) throws IOException Implements io. Doc from io. Returns a new CodecHandler for the database associated with the given PageChannel. This implementation returns DUMMY_HANDLER for databases with no encoding and UNSUPPORTED_HANDLER for databases with any encoding.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canDecodeInline()
Implements io. Returns |
| public boolean | canEncodePartialPage()
Implements io. Returns |
| public void | decodePage(ByteBuffer inPage, ByteBuffer outPage, int pageNumber)
Implements io. Decodes the given page buffer. |
| public ByteBuffer | encodePage(ByteBuffer page, int pageNumber, int pageOffset)
Implements io. Encodes the given page buffer into a new page buffer and returns it. |
| DummyHandler | back to summary |
|---|---|
| public DummyHandler() | |
| canDecodeInline | back to summary |
|---|---|
| public boolean canDecodeInline() Implements io. Doc from io. Returns
| |
| canEncodePartialPage | back to summary |
|---|---|
| public boolean canEncodePartialPage() Implements io. Doc from io. Returns
| |
| decodePage | back to summary |
|---|---|
| public void decodePage(ByteBuffer inPage, ByteBuffer outPage, int pageNumber) Implements io. Doc from io. Decodes the given page buffer.
| |
| encodePage | back to summary |
|---|---|
| public ByteBuffer encodePage(ByteBuffer page, int pageNumber, int pageOffset) Implements io. Doc from io. Encodes the given page buffer into a new page buffer and returns it. The returned page buffer will be used immediately and discarded so that it may be re-used for subsequent page encodings.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canDecodeInline()
Implements io. Returns |
| public boolean | canEncodePartialPage()
Implements io. Returns |
| public void | decodePage(ByteBuffer inPage, ByteBuffer outPage, int pageNumber)
Implements io. Decodes the given page buffer. |
| public ByteBuffer | encodePage(ByteBuffer page, int pageNumber, int pageOffset)
Implements io. Encodes the given page buffer into a new page buffer and returns it. |
| UnsupportedHandler | back to summary |
|---|---|
| public UnsupportedHandler() | |
| canDecodeInline | back to summary |
|---|---|
| public boolean canDecodeInline() Implements io. Doc from io. Returns
| |
| canEncodePartialPage | back to summary |
|---|---|
| public boolean canEncodePartialPage() Implements io. Doc from io. Returns
| |
| decodePage | back to summary |
|---|---|
| public void decodePage(ByteBuffer inPage, ByteBuffer outPage, int pageNumber) Implements io. Doc from io. Decodes the given page buffer.
| |
| encodePage | back to summary |
|---|---|
| public ByteBuffer encodePage(ByteBuffer page, int pageNumber, int pageOffset) Implements io. Doc from io. Encodes the given page buffer into a new page buffer and returns it. The returned page buffer will be used immediately and discarded so that it may be re-used for subsequent page encodings.
| |