29
29
import jdk .internal .util .ArraysSupport ;
30
30
31
31
/**
32
- * A < code> BufferedInputStream</code> adds
32
+ * A {@ code BufferedInputStream} adds
33
33
* functionality to another input stream-namely,
34
34
* the ability to buffer the input and to
35
- * support the < code> mark</code> and < code> reset</code>
36
- * methods. When the < code> BufferedInputStream</code>
35
+ * support the {@ code mark} and {@ code reset}
36
+ * methods. When the {@ code BufferedInputStream}
37
37
* is created, an internal buffer array is
38
38
* created. As bytes from the stream are read
39
39
* or skipped, the internal buffer is refilled
40
40
* as necessary from the contained input stream,
41
- * many bytes at a time. The < code> mark</code>
41
+ * many bytes at a time. The {@ code mark}
42
42
* operation remembers a point in the input
43
- * stream and the < code> reset</code> operation
43
+ * stream and the {@ code reset} operation
44
44
* causes all the bytes read since the most
45
- * recent < code> mark</code> operation to be
45
+ * recent {@ code mark} operation to be
46
46
* reread before new bytes are taken from
47
47
* the contained input stream.
48
48
*
@@ -81,23 +81,23 @@ class BufferedInputStream extends FilterInputStream {
81
81
* The index one greater than the index of the last valid byte in
82
82
* the buffer.
83
83
* This value is always
84
- * in the range < code>0</code> through < code> buf.length</code> ;
85
- * elements < code> buf[0]</code> through < code> buf[count-1]
86
- * </code> contain buffered input data obtained
84
+ * in the range {@ code 0} through {@ code buf.length} ;
85
+ * elements {@ code buf[0]} through {@ code buf[count-1]}
86
+ * contain buffered input data obtained
87
87
* from the underlying input stream.
88
88
*/
89
89
protected int count ;
90
90
91
91
/**
92
92
* The current position in the buffer. This is the index of the next
93
- * character to be read from the < code> buf</code> array.
93
+ * character to be read from the {@ code buf} array.
94
94
* <p>
95
- * This value is always in the range < code>0</code>
96
- * through < code> count</code> . If it is less
97
- * than < code> count</code> , then < code> buf[pos]</code>
95
+ * This value is always in the range {@ code 0}
96
+ * through {@ code count} . If it is less
97
+ * than {@ code count} , then {@ code buf[pos]}
98
98
* is the next byte to be supplied as input;
99
- * if it is equal to < code> count</code> , then
100
- * the next < code> read</code> or < code> skip</code>
99
+ * if it is equal to {@ code count} , then
100
+ * the next {@ code read} or {@ code skip}
101
101
* operation will require more bytes to be
102
102
* read from the contained input stream.
103
103
*
@@ -106,28 +106,28 @@ class BufferedInputStream extends FilterInputStream {
106
106
protected int pos ;
107
107
108
108
/**
109
- * The value of the < code> pos</code> field at the time the last
110
- * < code> mark</code> method was called.
109
+ * The value of the {@ code pos} field at the time the last
110
+ * {@ code mark} method was called.
111
111
* <p>
112
112
* This value is always
113
- * in the range < code>-1</code> through < code> pos</code> .
113
+ * in the range {@ code -1} through {@ code pos} .
114
114
* If there is no marked position in the input
115
- * stream, this field is < code>-1</code> . If
115
+ * stream, this field is {@ code -1} . If
116
116
* there is a marked position in the input
117
- * stream, then < code> buf[markpos]</code>
117
+ * stream, then {@ code buf[markpos]}
118
118
* is the first byte to be supplied as input
119
- * after a < code> reset</code> operation. If
120
- * < code> markpos</code> is not < code>-1</code> ,
121
- * then all bytes from positions < code> buf[markpos]</code>
122
- * through < code> buf[pos-1]</code> must remain
119
+ * after a {@ code reset} operation. If
120
+ * {@ code markpos} is not {@ code -1} ,
121
+ * then all bytes from positions {@ code buf[markpos]}
122
+ * through {@ code buf[pos-1]} must remain
123
123
* in the buffer array (though they may be
124
124
* moved to another place in the buffer array,
125
125
* with suitable adjustments to the values
126
- * of < code> count</code> , < code> pos</code> ,
127
- * and < code> markpos</code> ); they may not
126
+ * of {@ code count} , {@ code pos} ,
127
+ * and {@ code markpos} ); they may not
128
128
* be discarded unless and until the difference
129
- * between < code> pos</code> and < code> markpos</code>
130
- * exceeds < code> marklimit</code> .
129
+ * between {@ code pos} and {@ code markpos}
130
+ * exceeds {@ code marklimit} .
131
131
*
132
132
* @see java.io.BufferedInputStream#mark(int)
133
133
* @see java.io.BufferedInputStream#pos
@@ -136,12 +136,12 @@ class BufferedInputStream extends FilterInputStream {
136
136
137
137
/**
138
138
* The maximum read ahead allowed after a call to the
139
- * < code> mark</code> method before subsequent calls to the
140
- * < code> reset</code> method fail.
141
- * Whenever the difference between < code> pos</code>
142
- * and < code> markpos</code> exceeds < code> marklimit</code> ,
139
+ * {@ code mark} method before subsequent calls to the
140
+ * {@ code reset} method fail.
141
+ * Whenever the difference between {@ code pos}
142
+ * and {@ code markpos} exceeds {@ code marklimit} ,
143
143
* then the mark may be dropped by setting
144
- * < code> markpos</code> to < code>-1</code> .
144
+ * {@ code markpos} to {@ code -1} .
145
145
*
146
146
* @see java.io.BufferedInputStream#mark(int)
147
147
* @see java.io.BufferedInputStream#reset()
@@ -171,10 +171,10 @@ private byte[] getBufIfOpen() throws IOException {
171
171
}
172
172
173
173
/**
174
- * Creates a < code> BufferedInputStream</code>
174
+ * Creates a {@ code BufferedInputStream}
175
175
* and saves its argument, the input stream
176
- * < code>in</code> , for later use. An internal
177
- * buffer array is created and stored in < code> buf</code> .
176
+ * {@ code in} , for later use. An internal
177
+ * buffer array is created and stored in {@ code buf} .
178
178
*
179
179
* @param in the underlying input stream.
180
180
*/
@@ -183,12 +183,12 @@ public BufferedInputStream(InputStream in) {
183
183
}
184
184
185
185
/**
186
- * Creates a < code> BufferedInputStream</code>
186
+ * Creates a {@ code BufferedInputStream}
187
187
* with the specified buffer size,
188
188
* and saves its argument, the input stream
189
- * < code>in</code> , for later use. An internal
190
- * buffer array of length < code> size</code>
191
- * is created and stored in < code> buf</code> .
189
+ * {@ code in} , for later use. An internal
190
+ * buffer array of length {@ code size}
191
+ * is created and stored in {@ code buf} .
192
192
*
193
193
* @param in the underlying input stream.
194
194
* @param size the buffer size.
@@ -249,10 +249,10 @@ else if (pos >= buffer.length) { /* no room left in buffer */
249
249
250
250
/**
251
251
* See
252
- * the general contract of the < code> read</code>
253
- * method of < code> InputStream</code> .
252
+ * the general contract of the {@ code read}
253
+ * method of {@ code InputStream} .
254
254
*
255
- * @return the next byte of data, or < code>-1</code> if the end of the
255
+ * @return the next byte of data, or {@ code -1} if the end of the
256
256
* stream is reached.
257
257
* @throws IOException if this input stream has been closed by
258
258
* invoking its {@link #close()} method,
@@ -300,21 +300,21 @@ private int read1(byte[] b, int off, int len) throws IOException {
300
300
* <code>{@link InputStream#read(byte[], int, int) read}</code> method of
301
301
* the <code>{@link InputStream}</code> class. As an additional
302
302
* convenience, it attempts to read as many bytes as possible by repeatedly
303
- * invoking the < code> read</code> method of the underlying stream. This
304
- * iterated < code> read</code> continues until one of the following
303
+ * invoking the {@ code read} method of the underlying stream. This
304
+ * iterated {@ code read} continues until one of the following
305
305
* conditions becomes true: <ul>
306
306
*
307
307
* <li> The specified number of bytes have been read,
308
308
*
309
- * <li> The < code> read</code> method of the underlying stream returns
310
- * < code>-1</code> , indicating end-of-file, or
309
+ * <li> The {@ code read} method of the underlying stream returns
310
+ * {@ code -1} , indicating end-of-file, or
311
311
*
312
- * <li> The < code> available</code> method of the underlying stream
312
+ * <li> The {@ code available} method of the underlying stream
313
313
* returns zero, indicating that further input requests would block.
314
314
*
315
- * </ul> If the first < code> read</code> on the underlying stream returns
316
- * < code>-1</code> to indicate end-of-file then this method returns
317
- * < code>-1</code> . Otherwise this method returns the number of bytes
315
+ * </ul> If the first {@ code read} on the underlying stream returns
316
+ * {@ code -1} to indicate end-of-file then this method returns
317
+ * {@ code -1} . Otherwise this method returns the number of bytes
318
318
* actually read.
319
319
*
320
320
* <p> Subclasses of this class are encouraged, but not required, to
@@ -323,7 +323,7 @@ private int read1(byte[] b, int off, int len) throws IOException {
323
323
* @param b destination buffer.
324
324
* @param off offset at which to start storing bytes.
325
325
* @param len maximum number of bytes to read.
326
- * @return the number of bytes read, or < code>-1</code> if the end of
326
+ * @return the number of bytes read, or {@ code -1} if the end of
327
327
* the stream has been reached.
328
328
* @throws IOException if this input stream has been closed by
329
329
* invoking its {@link #close()} method,
@@ -355,8 +355,8 @@ public synchronized int read(byte b[], int off, int len)
355
355
}
356
356
357
357
/**
358
- * See the general contract of the < code> skip</code>
359
- * method of < code> InputStream</code> .
358
+ * See the general contract of the {@ code skip}
359
+ * method of {@ code InputStream} .
360
360
*
361
361
* @throws IOException if this input stream has been closed by
362
362
* invoking its {@link #close()} method,
@@ -413,8 +413,8 @@ public synchronized int available() throws IOException {
413
413
}
414
414
415
415
/**
416
- * See the general contract of the < code> mark</code>
417
- * method of < code> InputStream</code> .
416
+ * See the general contract of the {@ code mark}
417
+ * method of {@ code InputStream} .
418
418
*
419
419
* @param readlimit the maximum limit of bytes that can be read before
420
420
* the mark position becomes invalid.
@@ -426,14 +426,14 @@ public synchronized void mark(int readlimit) {
426
426
}
427
427
428
428
/**
429
- * See the general contract of the < code> reset</code>
430
- * method of < code> InputStream</code> .
429
+ * See the general contract of the {@ code reset}
430
+ * method of {@ code InputStream} .
431
431
* <p>
432
- * If < code> markpos</code> is < code>-1</code>
432
+ * If {@ code markpos} is {@ code -1}
433
433
* (no mark has been set or the mark has been
434
- * invalidated), an < code> IOException</code>
435
- * is thrown. Otherwise, < code> pos</code> is
436
- * set equal to < code> markpos</code> .
434
+ * invalidated), an {@ code IOException}
435
+ * is thrown. Otherwise, {@ code pos} is
436
+ * set equal to {@ code markpos} .
437
437
*
438
438
* @throws IOException if this stream has not been marked or,
439
439
* if the mark has been invalidated, or the stream
@@ -449,13 +449,13 @@ public synchronized void reset() throws IOException {
449
449
}
450
450
451
451
/**
452
- * Tests if this input stream supports the < code> mark</code>
453
- * and < code> reset</code> methods. The < code> markSupported</code>
454
- * method of < code> BufferedInputStream</code> returns
455
- * < code> true</code> .
452
+ * Tests if this input stream supports the {@ code mark}
453
+ * and {@ code reset} methods. The {@ code markSupported}
454
+ * method of {@ code BufferedInputStream} returns
455
+ * {@ code true} .
456
456
*
457
- * @return a < code> boolean</code> indicating if this stream type supports
458
- * the < code> mark</code> and < code> reset</code> methods.
457
+ * @return a {@ code boolean} indicating if this stream type supports
458
+ * the {@ code mark} and {@ code reset} methods.
459
459
* @see java.io.InputStream#mark(int)
460
460
* @see java.io.InputStream#reset()
461
461
*/
0 commit comments