diff options
author | Don Anderson <dda@ddanderson.com> | 2016-04-20 14:54:05 -0400 |
---|---|---|
committer | Don Anderson <dda@ddanderson.com> | 2016-04-20 14:54:05 -0400 |
commit | 7ab387621b589aa8590e45f8903cec156bd105b7 (patch) | |
tree | 57a923d87fc9b23d38948ef91fb2e4db75dae4b3 /lang | |
parent | ff373561777545ab7e0f1749894268f65f0d1b1c (diff) | |
download | mongo-7ab387621b589aa8590e45f8903cec156bd105b7.tar.gz |
WT-2568 Add a backward compatible constructor for PackInputStream.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/java/src/com/wiredtiger/db/PackInputStream.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lang/java/src/com/wiredtiger/db/PackInputStream.java b/lang/java/src/com/wiredtiger/db/PackInputStream.java index 29cd87e24d8..732bf450acd 100644 --- a/lang/java/src/com/wiredtiger/db/PackInputStream.java +++ b/lang/java/src/com/wiredtiger/db/PackInputStream.java @@ -51,6 +51,17 @@ public class PackInputStream { * \param format A String that contains the WiredTiger format that * defines the layout of this packed value. * \param value The raw bytes that back the stream. + */ + public PackInputStream(String format, byte[] value) { + this(format, value, false, 0, value.length); + } + + /** + * Constructor. + * + * \param format A String that contains the WiredTiger format that + * defines the layout of this packed value. + * \param value The raw bytes that back the stream. * \param isRaw The stream is opened raw. */ public PackInputStream(String format, byte[] value, boolean isRaw) { |