|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.healthmarketscience.jackcess.DefaultCodecProvider
public class DefaultCodecProvider
Default implementation of CodecProvider which does not have any actual
encoding/decoding support. See CodecProvider
for details on a more
useful implementation.
Nested Class Summary | |
---|---|
static class |
DefaultCodecProvider.DummyHandler
CodecHandler implementation which does nothing, useful for databases with no extra encoding. |
static class |
DefaultCodecProvider.UnsupportedHandler
CodecHandler implementation which always throws UnsupportedCodecException, useful for databases with unsupported encodings. |
Field Summary | |
---|---|
static CodecHandler |
DUMMY_HANDLER
common instance of DefaultCodecProvider.DummyHandler |
static CodecProvider |
INSTANCE
common instance of DefaultCodecProvider |
static CodecHandler |
UNSUPPORTED_HANDLER
common instance of DefaultCodecProvider.UnsupportedHandler |
Constructor Summary | |
---|---|
DefaultCodecProvider()
|
Method Summary | |
---|---|
CodecHandler |
createHandler(PageChannel channel,
Charset charset)
Returns a new CodecHandler for the database associated with the given PageChannel. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final CodecProvider INSTANCE
public static final CodecHandler DUMMY_HANDLER
DefaultCodecProvider.DummyHandler
public static final CodecHandler UNSUPPORTED_HANDLER
DefaultCodecProvider.UnsupportedHandler
Constructor Detail |
---|
public DefaultCodecProvider()
Method Detail |
---|
public CodecHandler createHandler(PageChannel channel, Charset charset) throws IOException
This implementation returns DUMMY_HANDLER for databases with no encoding and UNSUPPORTED_HANDLER for databases with any encoding.
createHandler
in interface CodecProvider
channel
- the PageChannel for a Databasecharset
- the Charset for the Database
null
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |