summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/isode/stroke/base/SafeByteArray.java')
-rw-r--r--src/com/isode/stroke/base/SafeByteArray.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/com/isode/stroke/base/SafeByteArray.java b/src/com/isode/stroke/base/SafeByteArray.java
index e193299..437346f 100644
--- a/src/com/isode/stroke/base/SafeByteArray.java
+++ b/src/com/isode/stroke/base/SafeByteArray.java
@@ -61,6 +61,11 @@ public class SafeByteArray extends ByteArray {
return this;
}
+ public SafeByteArray append(SafeByteArray b) {
+ append(b.getData());
+ return this;
+ }
+
/**
* Updates the SafeByteArray by adding all the bytes
* in a byte[] to the end of the array (mutable add).
@@ -102,4 +107,4 @@ public class SafeByteArray extends ByteArray {
super.append(s);
return this;
}
-} \ No newline at end of file
+}