This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git

commit 368ff234445a182c88fc5b1c42e2d550c096c559
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Fri May 19 10:38:15 2023 -0400

    Javadoc
---
 .../commons/io/input/UnsynchronizedByteArrayInputStream.java | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

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 d3290468..38e9a2d9 100644
--- 
a/src/main/java/org/apache/commons/io/input/UnsynchronizedByteArrayInputStream.java
+++ 
b/src/main/java/org/apache/commons/io/input/UnsynchronizedByteArrayInputStream.java
@@ -23,6 +23,7 @@ import java.io.IOException;
 import java.io.InputStream;
 import java.util.Objects;
 
+import org.apache.commons.io.build.AbstractOrigin;
 import org.apache.commons.io.build.AbstractStreamBuilder;
 
 /**
@@ -81,8 +82,17 @@ public class UnsynchronizedByteArrayInputStream extends 
InputStream {
 
         /**
          * Constructs a new instance.
+         * <p>
+         * This builder use the aspects byte[], offset and length.
+         * </p>
+         * <p>
+         * You must provide an origin that can be converted to a byte[] by 
this builder, otherwise, this call will throw an
+         * {@link UnsupportedOperationException}.
+         * </p>
          *
-         * @throws UnsupportedOperationException if the origin cannot be 
converted to a byte array.
+         * @return a new instance.
+         * @throws UnsupportedOperationException if the origin cannot provide 
a byte[].
+         * @see AbstractOrigin#getByteArray()
          */
         @Override
         public UnsynchronizedByteArrayInputStream get() throws IOException {

Reply via email to