summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDon Anderson <dda@mongodb.com>2016-12-05 20:48:47 -0500
committerAlex Gorrod <alexander.gorrod@mongodb.com>2016-12-06 12:48:47 +1100
commit6b7d879a27d61d2b39152d79ef62a64469efa68c (patch)
tree5db5b80a1bb6e37d3a3caba4b3179ef6c6787078
parent1435e0c1144a058b3cb2b5883bda09052f79cc19 (diff)
downloadmongo-6b7d879a27d61d2b39152d79ef62a64469efa68c.tar.gz
WT-3054 Make a PackOutputStream constructor that is compatible with the (#3175)
previous interface, allowing old tests to work without changes.
-rw-r--r--lang/java/src/com/wiredtiger/db/PackOutputStream.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/lang/java/src/com/wiredtiger/db/PackOutputStream.java b/lang/java/src/com/wiredtiger/db/PackOutputStream.java
index 0ccfdf6c413..b6804a2992f 100644
--- a/lang/java/src/com/wiredtiger/db/PackOutputStream.java
+++ b/lang/java/src/com/wiredtiger/db/PackOutputStream.java
@@ -50,6 +50,17 @@ public class PackOutputStream {
* \param format A String that contains the WiredTiger format that
* defines the layout of this packed value.
*/
+ public PackOutputStream(String format) {
+ this(format, false);
+ }
+
+ /**
+ * Constructor.
+ *
+ * \param format A String that contains the WiredTiger format that
+ * defines the layout of this packed value.
+ * \param isRaw The stream is opened raw.
+ */
public PackOutputStream(String format, boolean isRaw) {
this.format = new PackFormatInputStream(format, isRaw);
this.intBuf = new byte[MAX_INT_BYTES];