aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/apache/commons/io/input/UnsynchronizedByteArrayInputStream.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/apache/commons/io/input/UnsynchronizedByteArrayInputStream.java')
-rw-r--r--src/main/java/org/apache/commons/io/input/UnsynchronizedByteArrayInputStream.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/java/org/apache/commons/io/input/UnsynchronizedByteArrayInputStream.java b/src/main/java/org/apache/commons/io/input/UnsynchronizedByteArrayInputStream.java
index a4fc696c..f10c1120 100644
--- a/src/main/java/org/apache/commons/io/input/UnsynchronizedByteArrayInputStream.java
+++ b/src/main/java/org/apache/commons/io/input/UnsynchronizedByteArrayInputStream.java
@@ -106,6 +106,12 @@ public class UnsynchronizedByteArrayInputStream extends InputStream {
return super.setByteArray(origin);
}
+ /**
+ * Sets the length.
+ *
+ * @param length Must be greater or equal to 0.
+ * @return this.
+ */
public Builder setLength(final int length) {
if (length < 0) {
throw new IllegalArgumentException("length cannot be negative");
@@ -114,6 +120,12 @@ public class UnsynchronizedByteArrayInputStream extends InputStream {
return this;
}
+ /**
+ * Sets the offset.
+ *
+ * @param offset Must be greater or equal to 0.
+ * @return this.
+ */
public Builder setOffset(final int offset) {
if (offset < 0) {
throw new IllegalArgumentException("offset cannot be negative");