Skip to content

Commit 1bdbb60

Browse files
committed
Javadoc improvements
1 parent dd38ca5 commit 1bdbb60

25 files changed

+95
-38
lines changed

src/main/java/org/apache/commons/io/input/MemoryMappedFileInputStream.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,14 @@ public Builder() {
108108
* This builder uses the following aspects:
109109
* </p>
110110
* <ul>
111-
* <li>{@link #getPath()}</li>
111+
* <li>{@link #getPath()} gets the target aspect.</li>
112112
* <li>{@link #getBufferSize()}</li>
113113
* </ul>
114114
*
115115
* @return a new instance.
116116
* @throws IllegalStateException if the {@code origin} is {@code null}.
117117
* @throws UnsupportedOperationException if the origin cannot be converted to a {@link Path}.
118-
* @throws IOException if an I/O error occurs.
118+
* @throws IOException if an I/O error occurs converting to an {@link Path} using {@link #getPath()}.
119119
* @see #getPath()
120120
* @see #getBufferSize()
121121
* @see #getUnchecked()

src/main/java/org/apache/commons/io/input/RandomAccessFileInputStream.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,16 @@ public Builder() {
7777
* This builder uses the following aspects:
7878
* </p>
7979
* <ul>
80-
* <li>{@link RandomAccessFile}</li>
80+
* <li>{@link RandomAccessFile} gets the target aspect.</li>
8181
* <li>{@link File}</li>
8282
* <li>closeOnClose</li>
8383
* </ul>
8484
*
8585
* @return a new instance.
8686
* @throws IllegalStateException if the {@code origin} is {@code null}.
8787
* @throws IllegalStateException if both RandomAccessFile and origin are set.
88-
* @throws UnsupportedOperationException if the origin cannot be converted to a {@link File}.
88+
* @throws UnsupportedOperationException if the origin cannot be converted to a {@link RandomAccessFile}.
89+
* @throws IOException if an I/O error occurs converting to an {@link RandomAccessFile} using {@link #getRandomAccessFile()}.
8990
* @see AbstractOrigin#getFile()
9091
* @see #getUnchecked()
9192
*/

src/main/java/org/apache/commons/io/input/ReadAheadInputStream.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,15 @@ public Builder() {
8787
* This builder uses the following aspects:
8888
* </p>
8989
* <ul>
90-
* <li>{@link #getInputStream()}</li>
90+
* <li>{@link #getInputStream()} gets the target aspect.</li>
9191
* <li>{@link #getBufferSize()}</li>
9292
* <li>{@link ExecutorService}</li>
9393
* </ul>
9494
*
9595
* @return a new instance.
9696
* @throws IllegalStateException if the {@code origin} is {@code null}.
9797
* @throws UnsupportedOperationException if the origin cannot be converted to an {@link InputStream}.
98-
* @throws IOException if an I/O error occurs.
98+
* @throws IOException if an I/O error occurs converting to an {@link InputStream} using {@link #getInputStream()}.
9999
* @see #getInputStream()
100100
* @see #getBufferSize()
101101
* @see #getUnchecked()

src/main/java/org/apache/commons/io/input/ReaderInputStream.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,16 @@ public Builder() {
126126
* This builder uses the following aspects:
127127
* </p>
128128
* <ul>
129-
* <li>{@link #getReader()}</li>
129+
* <li>{@link #getReader()} gets the target aspect.</li>
130130
* <li>{@link #getBufferSize()}</li>
131131
* <li>{@link #getCharset()}</li>
132132
* <li>{@link CharsetEncoder}</li>
133133
* </ul>
134134
*
135135
* @return a new instance.
136-
* @throws UnsupportedOperationException if the origin cannot provide a Reader.
137-
* @throws IllegalStateException if the {@code origin} is {@code null}.
136+
* @throws UnsupportedOperationException if the origin cannot provide a {@link Reader}.
137+
* @throws IllegalStateException if the {@code origin} is {@code null}.
138+
* @throws IOException if an I/O error occurs converting to a {@link Reader} using {@link #getReader()}.
138139
* @see #getReader()
139140
* @see CharsetEncoder
140141
* @see #getBufferSize()

src/main/java/org/apache/commons/io/input/ReversedLinesFileReader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,15 @@ public Builder() {
104104
* This builder uses the following aspects:
105105
* </p>
106106
* <ul>
107-
* <li>{@link #getInputStream()}</li>
107+
* <li>{@link #getPath()} gets the target aspect.</li>
108108
* <li>{@link #getBufferSize()}</li>
109109
* <li>{@link #getCharset()}</li>
110110
* </ul>
111111
*
112112
* @return a new instance.
113113
* @throws IllegalStateException if the {@code origin} is {@code null}.
114114
* @throws UnsupportedOperationException if the origin cannot be converted to a {@link Path}.
115-
* @throws IOException if an I/O error occurs.
115+
* @throws IOException if an I/O error occurs converting to a {@link Path} using {@link #getPath()}.
116116
* @see #getPath()
117117
* @see #getBufferSize()
118118
* @see #getCharset()

src/main/java/org/apache/commons/io/input/UncheckedBufferedReader.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,17 +87,18 @@ public Builder() {
8787
* This builder uses the following aspects:
8888
* </p>
8989
* <ul>
90-
* <li>{@link #getReader()}</li>
90+
* <li>{@link #getReader()} gets the target aspect.</li>
9191
* <li>{@link #getBufferSize()}</li>
9292
* </ul>
9393
*
9494
* @return a new instance.
95-
* @throws UnsupportedOperationException if the origin cannot provide a Reader.
95+
* @throws UnsupportedOperationException if the origin cannot provide a {@link Reader}.
9696
* @throws IllegalStateException if the {@code origin} is {@code null}.
9797
* @see #getReader()
9898
* @see #getBufferSize()
9999
* @see #getUnchecked()
100100
*/
101+
@SuppressWarnings("resource")
101102
@Override
102103
public UncheckedBufferedReader get() {
103104
// This an unchecked class, so this method is as well.

src/main/java/org/apache/commons/io/input/UncheckedFilterInputStream.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,15 @@ public Builder() {
8282
* This builder uses the following aspects:
8383
* </p>
8484
* <ul>
85-
* <li>{@link #getInputStream()}</li>
85+
* <li>{@link #getInputStream()} gets the target aspect.</li>
8686
* </ul>
8787
*
8888
* @return a new instance.
89-
* @throws UnsupportedOperationException if the origin cannot provide an InputStream.
89+
* @throws UnsupportedOperationException if the origin cannot provide an {@link #getInputStream()}.
9090
* @see #getInputStream()
9191
* @see #getUnchecked()
9292
*/
93+
@SuppressWarnings("resource")
9394
@Override
9495
public UncheckedFilterInputStream get() {
9596
// This an unchecked class, so this method is as well.

src/main/java/org/apache/commons/io/input/UncheckedFilterReader.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,12 @@ public Builder() {
8686
* </ul>
8787
*
8888
* @return a new instance.
89-
* @throws UnsupportedOperationException if the origin cannot provide a Reader.
89+
* @throws UnsupportedOperationException if the origin cannot provide a {@link Reader}.
9090
* @throws IllegalStateException if the {@code origin} is {@code null}.
9191
* @see #getReader()
9292
* @see #getUnchecked()
9393
*/
94+
@SuppressWarnings("resource")
9495
@Override
9596
public UncheckedFilterReader get() {
9697
// This an unchecked class, so this method is as well.

src/main/java/org/apache/commons/io/input/UnsynchronizedBufferedInputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public Builder() {
106106
* @return a new instance.
107107
* @throws IllegalStateException if the {@code origin} is {@code null}.
108108
* @throws UnsupportedOperationException if the origin cannot be converted to an {@link InputStream}.
109-
* @throws IOException if an I/O error occurs.
109+
* @throws IOException if an I/O error occurs converting to an {@link InputStream} using {@link #getInputStream()}.
110110
* @see #getInputStream()
111111
* @see #getBufferSize()
112112
* @see #getUnchecked()

src/main/java/org/apache/commons/io/input/UnsynchronizedByteArrayInputStream.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,9 @@ public Builder() {
106106
* </ul>
107107
*
108108
* @return a new instance.
109-
* @throws UnsupportedOperationException if the origin cannot provide a byte[].
109+
* @throws UnsupportedOperationException if the origin cannot provide a {@code byte[]}.
110110
* @throws IllegalStateException if the {@code origin} is {@code null}.
111+
* @throws IOException if an I/O error occurs converting to an {@code byte[]} using {@link AbstractOrigin#getByteArray()}.
111112
* @see AbstractOrigin#getByteArray()
112113
* @see #getUnchecked()
113114
*/

0 commit comments

Comments
 (0)