Skip to content

Commit 28c9b28

Browse files
committed
Javadoc
1 parent 0c547ad commit 28c9b28

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ protected void beforeRead(final int n) throws IOException {
9595
}
9696

9797
/**
98-
* Invokes the delegate's {@code close()} method.
98+
* Closes the stream and releases any system resources associated with it by invoking the delegate's {@link Reader#close()} method.
9999
*
100100
* @throws IOException if an I/O error occurs.
101101
*/
@@ -124,7 +124,7 @@ protected void handleIOException(final IOException e) throws IOException {
124124
}
125125

126126
/**
127-
* Invokes the delegate's {@code mark(int)} method.
127+
* Marks the present position in the stream by invoking the delegate's {@link Reader#mark(int)} method.
128128
*
129129
* @param readAheadLimit read ahead limit.
130130
* @throws IOException if an I/O error occurs.
@@ -139,7 +139,7 @@ public synchronized void mark(final int readAheadLimit) throws IOException {
139139
}
140140

141141
/**
142-
* Invokes the delegate's {@code markSupported()} method.
142+
* Tests whether this stream supports the {@link Reader#mark(int)} operation by invoking the delegate's {@link Reader#markSupported()} method.
143143
*
144144
* @return true if mark is supported, otherwise false.
145145
*/
@@ -149,7 +149,7 @@ public boolean markSupported() {
149149
}
150150

151151
/**
152-
* Invokes the delegate's {@code read()} method.
152+
* Reads characters into an array by invoking the delegate's {@link Reader#read()} method.
153153
*
154154
* @return the character read or -1 if the end of stream.
155155
* @throws IOException if an I/O error occurs.
@@ -188,7 +188,7 @@ public int read(final char[] chr) throws IOException {
188188
}
189189

190190
/**
191-
* Invokes the delegate's {@code read(char[], int, int)} method.
191+
* Reads characters into a portion of an array by invoking the delegate's {@link Reader#read(char[], int, int)} method.
192192
*
193193
* @param chr the buffer to read the characters into.
194194
* @param st The start offset.
@@ -210,7 +210,7 @@ public int read(final char[] chr, final int st, final int len) throws IOExceptio
210210
}
211211

212212
/**
213-
* Invokes the delegate's {@code read(CharBuffer)} method.
213+
* Attempts to read characters into the specified character buffer by invoking the delegate's {@link Reader#read(CharBuffer)} method.
214214
*
215215
* @param target the char buffer to read the characters into.
216216
* @return the number of characters read or -1 if the end of stream.
@@ -231,7 +231,7 @@ public int read(final CharBuffer target) throws IOException {
231231
}
232232

233233
/**
234-
* Invokes the delegate's {@code ready()} method.
234+
* Tells whether this stream is ready to be read by invoking the delegate's {@link Reader#ready()} method.
235235
*
236236
* @return true if the stream is ready to be read.
237237
* @throws IOException if an I/O error occurs.
@@ -247,7 +247,7 @@ public boolean ready() throws IOException {
247247
}
248248

249249
/**
250-
* Invokes the delegate's {@code reset()} method.
250+
* Resets the stream by invoking the delegate's {@link Reader#reset()} method.
251251
*
252252
* @throws IOException if an I/O error occurs.
253253
*/
@@ -277,7 +277,7 @@ public ProxyReader setReference(final Reader in) {
277277

278278

279279
/**
280-
* Invokes the delegate's {@code skip(long)} method.
280+
* Skips characters by invoking the delegate's {@link Reader#skip(long)} method.
281281
*
282282
* @param ln the number of bytes to skip.
283283
* @return the number of bytes to skipped or EOF if the end of stream.

0 commit comments

Comments
 (0)