aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/com/healthmarketscience/jackcess/impl/MemoColumnImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/healthmarketscience/jackcess/impl/MemoColumnImpl.java')
-rw-r--r--src/main/java/com/healthmarketscience/jackcess/impl/MemoColumnImpl.java19
1 files changed, 8 insertions, 11 deletions
diff --git a/src/main/java/com/healthmarketscience/jackcess/impl/MemoColumnImpl.java b/src/main/java/com/healthmarketscience/jackcess/impl/MemoColumnImpl.java
index 8a9c742..dbd4023 100644
--- a/src/main/java/com/healthmarketscience/jackcess/impl/MemoColumnImpl.java
+++ b/src/main/java/com/healthmarketscience/jackcess/impl/MemoColumnImpl.java
@@ -20,8 +20,6 @@ USA
package com.healthmarketscience.jackcess.impl;
import java.io.IOException;
-import com.healthmarketscience.jackcess.DataType;
-import java.nio.ByteBuffer;
/**
* ColumnImpl subclass which is used for Memo data types.
@@ -44,22 +42,21 @@ class MemoColumnImpl extends LongValueColumnImpl
of type MEMO) */
private boolean _hyperlink;
- MemoColumnImpl(TableImpl table, ByteBuffer buffer, int offset,
- int displayIndex, DataType type, byte flags)
- throws IOException
+ MemoColumnImpl(InitArgs args) throws IOException
{
- super(table, buffer, offset, displayIndex, type, flags);
+ super(args);
// co-located w/ precision/scale
_sortOrder = readSortOrder(
- buffer, offset + getFormat().OFFSET_COLUMN_SORT_ORDER, getFormat());
- _codePage = readCodePage(buffer, offset, getFormat());
+ args.buffer, args.offset + getFormat().OFFSET_COLUMN_SORT_ORDER,
+ getFormat());
+ _codePage = readCodePage(args.buffer, args.offset, getFormat());
- _compressedUnicode = ((buffer.get(offset +
- getFormat().OFFSET_COLUMN_COMPRESSED_UNICODE) & 1) == 1);
+ _compressedUnicode =
+ ((args.extFlags & COMPRESSED_UNICODE_EXT_FLAG_MASK) != 0);
// only memo fields can be hyperlinks
- _hyperlink = ((flags & HYPERLINK_FLAG_MASK) != 0);
+ _hyperlink = ((args.flags & HYPERLINK_FLAG_MASK) != 0);
}
@Override