File tree Expand file tree Collapse file tree 12 files changed +30
-28
lines changed
src/main/java/org/apache/commons/io Expand file tree Collapse file tree 12 files changed +30
-28
lines changed Original file line number Diff line number Diff line change @@ -193,10 +193,6 @@ public byte[] getBytes() {
193193 return copy ;
194194 }
195195
196- int [] getRawBytes () {
197- return bytes ;
198- }
199-
200196 /**
201197 * Gets the name of the {@link java.nio.charset.Charset} the BOM represents.
202198 *
@@ -206,6 +202,10 @@ public String getCharsetName() {
206202 return charsetName ;
207203 }
208204
205+ int [] getRawBytes () {
206+ return bytes ;
207+ }
208+
209209 /**
210210 * Computes the hash code for this BOM.
211211 *
Original file line number Diff line number Diff line change @@ -78,13 +78,13 @@ public Builder() {
7878 * This builder uses the following aspects:
7979 * </p>
8080 * <ul>
81- * <li>{@link #getInputStream()}</li>
81+ * <li>{@link #getInputStream()} gets the target aspect. </li>
8282 * </ul>
8383 *
8484 * @return a new instance.
8585 * @throws IllegalStateException if the {@code origin} is {@code null}.
8686 * @throws UnsupportedOperationException if the origin cannot be converted to an {@link InputStream}.
87- * @throws IOException if an I/O error occurs.
87+ * @throws IOException if an I/O error occurs converting to an {@link InputStream} using {@link #getInputStream()} .
8888 * @see #getInputStream()
8989 * @see #getUnchecked()
9090 */
Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ public Builder() {
168168 * @return a new instance.
169169 * @throws IllegalStateException if the {@code origin} is {@code null}.
170170 * @throws UnsupportedOperationException if the origin cannot be converted to an {@link InputStream}.
171- * @throws IOException if an I/O error occurs.
171+ * @throws IOException if an I/O error occurs converting to an {@link InputStream} using {@link #getInputStream()} .
172172 * @see #getInputStream()
173173 * @see #getUnchecked()
174174 */
Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ public Builder() {
261261 * This builder uses the following aspects:
262262 * </p>
263263 * <ul>
264- * <li>{@link #getInputStream()} ( the target aspect) </li>
264+ * <li>{@link #getInputStream()} gets the target aspect. </li>
265265 * <li>{@link #getAfterRead()}</li>
266266 * <li>{@link #getCount()}</li>
267267 * <li>{@link #getMaxCount()}</li>
Original file line number Diff line number Diff line change @@ -91,14 +91,15 @@ public Builder() {
9191 * This builder uses the following aspects:
9292 * </p>
9393 * <ul>
94- * <li>{@link #getInputStream()}</li>
94+ * <li>{@link FileChannel} takes precedence is set. </li>
95+ * <li>{@link #getPath()} if the file channel is not set.</li>
9596 * <li>{@link #getBufferSize()}</li>
9697 * </ul>
9798 *
9899 * @return a new instance.
99100 * @throws IllegalStateException if the {@code origin} is {@code null}.
100101 * @throws UnsupportedOperationException if the origin cannot be converted to a {@link Path}.
101- * @throws IOException If an I/O error occurs
102+ * @throws IOException if an I/O error occurs converting to an {@link Path} using {@link #getPath()}.
102103 * @see #getPath()
103104 * @see #getBufferSize()
104105 * @see #getUnchecked()
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ public Builder() {
101101 * This builder uses the following aspects:
102102 * </p>
103103 * <ul>
104- * <li>{@link #getCharSequence()}</li>
104+ * <li>{@link #getCharSequence()} gets the target aspect. </li>
105105 * <li>{@link #getBufferSize()}</li>
106106 * <li>{@link CharsetEncoder}</li>
107107 * </ul>
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ public Builder() {
134134 * This builder uses the following aspects:
135135 * </p>
136136 * <ul>
137- * <li>{@link #getInputStream()}</li>
137+ * <li>{@link #getInputStream()} gets the target aspect. </li>
138138 * <li>{@link Checksum}</li>
139139 * <li>expectedChecksumValue</li>
140140 * <li>countThreshold</li>
@@ -143,7 +143,7 @@ public Builder() {
143143 * @return a new instance.
144144 * @throws IllegalStateException if the {@code origin} is {@code null}.
145145 * @throws UnsupportedOperationException if the origin cannot be converted to an {@link InputStream}.
146- * @throws IOException if an I/O error occurs.
146+ * @throws IOException if an I/O error occurs converting to an {@link InputStream} using {@link #getInputStream()} .
147147 * @see #getInputStream()
148148 * @see #getUnchecked()
149149 */
Original file line number Diff line number Diff line change @@ -92,15 +92,15 @@ public Builder() {
9292 * This builder uses the following aspects:
9393 * </p>
9494 * <ul>
95- * <li>{@link #getPath ()}</li>
95+ * <li>{@link #getInputStream ()} gets the target aspect. </li>
9696 * <li>{@link MessageDigest}</li>
9797 * </ul>
9898 *
9999 * @return a new instance.
100100 * @throws NullPointerException if messageDigest is null.
101101 * @throws IllegalStateException if the {@code origin} is {@code null}.
102102 * @throws UnsupportedOperationException if the origin cannot be converted to an {@link InputStream}.
103- * @throws IOException if an I/O error occurs.
103+ * @throws IOException if an I/O error occurs converting to an {@link InputStream} using {@link #getInputStream()} .
104104 * @see #getInputStream()
105105 * @see #getUnchecked()
106106 */
Original file line number Diff line number Diff line change @@ -91,15 +91,15 @@ public Builder() {
9191 * This builder uses the following aspects:
9292 * </p>
9393 * <ul>
94- * <li>{@link #getPath ()}</li>
94+ * <li>{@link #getInputStream ()} gets the target aspect. </li>
9595 * <li>{@link MessageDigest}</li>
9696 * </ul>
9797 *
9898 * @return a new instance.
9999 * @throws NullPointerException if messageDigest is null.
100100 * @throws IllegalStateException if the {@code origin} is {@code null}.
101101 * @throws UnsupportedOperationException if the origin cannot be converted to an {@link InputStream}.
102- * @throws IOException if an I/O error occurs.
102+ * @throws IOException if an I/O error occurs converting to an {@link InputStream} using {@link #getInputStream()} .
103103 * @see #getInputStream()
104104 * @see #getUnchecked()
105105 */
Original file line number Diff line number Diff line change @@ -95,14 +95,14 @@ public Builder() {
9595 * This builder uses the following aspects:
9696 * </p>
9797 * <ul>
98- * <li>{@link #getInputStream()}</li>
98+ * <li>{@link #getInputStream()} gets the target aspect. </li>
9999 * <li>maxBytesPerSecond</li>
100100 * </ul>
101101 *
102102 * @return a new instance.
103103 * @throws IllegalStateException if the {@code origin} is {@code null}.
104104 * @throws UnsupportedOperationException if the origin cannot be converted to an {@link InputStream}.
105- * @throws IOException if an I/O error occurs.
105+ * @throws IOException if an I/O error occurs converting to an {@link InputStream} using {@link #getInputStream()} .
106106 * @see #getInputStream()
107107 * @see #getUnchecked()
108108 */
You can’t perform that action at this time.
0 commit comments