diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2008-03-31 16:25:42 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2008-03-31 16:25:42 +0000 |
commit | 4f8ad5e2727d407274c979d08b9b0bed2387adbb (patch) | |
tree | 6a2aa833cc537cf492ca63f78386b4f51072199f /src/java/com/healthmarketscience/jackcess/Table.java | |
parent | 8c7485a0a149944f287babfe9f529f558075d175 (diff) | |
download | jackcess-4f8ad5e2727d407274c979d08b9b0bed2387adbb.tar.gz jackcess-4f8ad5e2727d407274c979d08b9b0bed2387adbb.zip |
add ByteUtil.getUnsignedShort
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@301 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/java/com/healthmarketscience/jackcess/Table.java')
-rw-r--r-- | src/java/com/healthmarketscience/jackcess/Table.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/com/healthmarketscience/jackcess/Table.java b/src/java/com/healthmarketscience/jackcess/Table.java index 650bce5..11397fa 100644 --- a/src/java/com/healthmarketscience/jackcess/Table.java +++ b/src/java/com/healthmarketscience/jackcess/Table.java @@ -1070,7 +1070,7 @@ public class Table * 2) bytes encoded using the {@link JetFormat#CHARSET} */ private String readName(ByteBuffer buffer) { - short nameLength = buffer.getShort(); + int nameLength = ByteUtil.getUnsignedShort(buffer); byte[] nameBytes = new byte[nameLength]; buffer.get(nameBytes); return Column.decodeUncompressedText(nameBytes, getFormat()); @@ -1081,7 +1081,7 @@ public class Table * expected name format is the same as that for {@link #readName}. */ private void skipName(ByteBuffer buffer) { - short nameLength = buffer.getShort(); + int nameLength = ByteUtil.getUnsignedShort(buffer); buffer.position(buffer.position() + nameLength); } |