summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/isode/stroke/base/ByteArray.java')
-rw-r--r--src/com/isode/stroke/base/ByteArray.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/com/isode/stroke/base/ByteArray.java b/src/com/isode/stroke/base/ByteArray.java
index 997cc6e..f1181f5 100644
--- a/src/com/isode/stroke/base/ByteArray.java
+++ b/src/com/isode/stroke/base/ByteArray.java
@@ -3,7 +3,7 @@
* All rights reserved.
*/
/*
- * Copyright (c) 2010-2015, Isode Limited, London, England.
+ * Copyright (c) 2010-2016, Isode Limited, London, England.
* All rights reserved.
*/
package com.isode.stroke.base;
@@ -61,6 +61,14 @@ public class ByteArray {
public ByteArray(ByteArray b) {
append(b);
}
+
+ /**
+ * Constructs a new {@link ByteArray} containing the user supplied byte.
+ * @param b a byte.
+ */
+ public ByteArray(byte b) {
+ append(b);
+ }
/*public ByteArray(char[] c, int n) {
for (int i = 0; i < n; i++) {