diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2012-03-01 01:49:15 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2012-03-01 01:49:15 +0000 |
commit | 0d7390cc7893f583c855ece31cfc2425b15e6ca1 (patch) | |
tree | 15cd4a6484d30f9e4bbde6a5f8c1ddb3b7af8bba /src/java/com | |
parent | af34773a0729df5cd9bd5f71077867d4548d6f81 (diff) | |
download | jackcess-0d7390cc7893f583c855ece31cfc2425b15e6ca1.tar.gz jackcess-0d7390cc7893f583c855ece31cfc2425b15e6ca1.zip |
add codec type for access 2007+ encoding
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@615 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/java/com')
-rw-r--r-- | src/java/com/healthmarketscience/jackcess/DefaultCodecProvider.java | 1 | ||||
-rw-r--r-- | src/java/com/healthmarketscience/jackcess/JetFormat.java | 7 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/java/com/healthmarketscience/jackcess/DefaultCodecProvider.java b/src/java/com/healthmarketscience/jackcess/DefaultCodecProvider.java index 1e88b4e..76280b9 100644 --- a/src/java/com/healthmarketscience/jackcess/DefaultCodecProvider.java +++ b/src/java/com/healthmarketscience/jackcess/DefaultCodecProvider.java @@ -61,6 +61,7 @@ public class DefaultCodecProvider implements CodecProvider return DUMMY_HANDLER; case JET: + case OFFICE: // check for an encode key. if 0, not encoded ByteBuffer bb = channel.createPageBuffer(); channel.readPage(bb, 0); diff --git a/src/java/com/healthmarketscience/jackcess/JetFormat.java b/src/java/com/healthmarketscience/jackcess/JetFormat.java index bd33fdc..2a37120 100644 --- a/src/java/com/healthmarketscience/jackcess/JetFormat.java +++ b/src/java/com/healthmarketscience/jackcess/JetFormat.java @@ -50,7 +50,7 @@ public abstract class JetFormat { public static final short TEXT_FIELD_MAX_LENGTH = 255 * TEXT_FIELD_UNIT_SIZE; public enum CodecType { - NONE, JET, MSISAM; + NONE, JET, MSISAM, OFFICE; } /** Offset in the file that holds the byte describing the Jet format @@ -965,6 +965,11 @@ public abstract class JetFormat { } @Override + protected CodecType defineCodecType() { + return CodecType.OFFICE; + } + + @Override protected boolean defineLegacyNumericIndexes() { return false; } @Override |