diff options
Diffstat (limited to 'src/java/com/healthmarketscience/jackcess/impl/UsageMap.java')
-rw-r--r-- | src/java/com/healthmarketscience/jackcess/impl/UsageMap.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/java/com/healthmarketscience/jackcess/impl/UsageMap.java b/src/java/com/healthmarketscience/jackcess/impl/UsageMap.java index 4f4293d..6a80e04 100644 --- a/src/java/com/healthmarketscience/jackcess/impl/UsageMap.java +++ b/src/java/com/healthmarketscience/jackcess/impl/UsageMap.java @@ -109,6 +109,21 @@ public class UsageMap /** * @param database database that contains this usage map + * @param buf buffer which contains the usage map row info + * @return Either an InlineUsageMap or a ReferenceUsageMap, depending on + * which type of map is found + */ + public static UsageMap read(DatabaseImpl database, ByteBuffer buf, + boolean assumeOutOfRangeBitsOn) + throws IOException + { + int umapRowNum = buf.get(); + int umapPageNum = ByteUtil.get3ByteInt(buf); + return read(database, umapPageNum, umapRowNum, false); + } + + /** + * @param database database that contains this usage map * @param pageNum Page number that this usage map is contained in * @param rowNum Number of the row on the page that contains this usage map * @return Either an InlineUsageMap or a ReferenceUsageMap, depending on |