Skip to content

Commit 3724232

Browse files
committed
Javadoc
1 parent 24a1ff9 commit 3724232

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ static boolean isTextXml(final String mime) {
330330
* </p>
331331
*
332332
* @param file File to create a Reader from.
333+
* @throws NullPointerException if the input is {@code null}.
333334
* @throws IOException thrown if there is a problem reading the file.
334335
* @deprecated Use {@link #builder()}
335336
*/
@@ -348,6 +349,7 @@ public XmlStreamReader(final File file) throws IOException {
348349
* </p>
349350
*
350351
* @param inputStream InputStream to create a Reader from.
352+
* @throws NullPointerException if the input stream is {@code null}.
351353
* @throws IOException thrown if there is a problem reading the stream.
352354
* @deprecated Use {@link #builder()}
353355
*/
@@ -382,6 +384,7 @@ public XmlStreamReader(final InputStream inputStream) throws IOException {
382384
*
383385
* @param inputStream InputStream to create a Reader from.
384386
* @param lenient indicates if the charset encoding detection should be relaxed.
387+
* @throws NullPointerException if the input stream is {@code null}.
385388
* @throws IOException thrown if there is a problem reading the stream.
386389
* @throws XmlStreamReaderException thrown if the charset encoding could not be determined according to the specs.
387390
* @deprecated Use {@link #builder()}
@@ -418,6 +421,7 @@ public XmlStreamReader(final InputStream inputStream, final boolean lenient) thr
418421
* @param inputStream InputStream to create a Reader from.
419422
* @param lenient indicates if the charset encoding detection should be relaxed.
420423
* @param defaultEncoding The default encoding
424+
* @throws NullPointerException if the input stream is {@code null}.
421425
* @throws IOException thrown if there is a problem reading the stream.
422426
* @throws XmlStreamReaderException thrown if the charset encoding could not be determined according to the specs.
423427
* @deprecated Use {@link #builder()}
@@ -445,6 +449,7 @@ public XmlStreamReader(final InputStream inputStream, final boolean lenient, fin
445449
*
446450
* @param inputStream InputStream to create the reader from.
447451
* @param httpContentType content-type header to use for the resolution of the charset encoding.
452+
* @throws NullPointerException if the input stream is {@code null}.
448453
* @throws IOException thrown if there is a problem reading the file.
449454
* @deprecated Use {@link #builder()}
450455
*/
@@ -481,6 +486,7 @@ public XmlStreamReader(final InputStream inputStream, final String httpContentTy
481486
* @param inputStream InputStream to create the reader from.
482487
* @param httpContentType content-type header to use for the resolution of the charset encoding.
483488
* @param lenient indicates if the charset encoding detection should be relaxed.
489+
* @throws NullPointerException if the input stream is {@code null}.
484490
* @throws IOException thrown if there is a problem reading the file.
485491
* @throws XmlStreamReaderException thrown if the charset encoding could not be determined according to the specification.
486492
* @deprecated Use {@link #builder()}
@@ -519,6 +525,7 @@ public XmlStreamReader(final InputStream inputStream, final String httpContentTy
519525
* @param httpContentType content-type header to use for the resolution of the charset encoding.
520526
* @param lenient indicates if the charset encoding detection should be relaxed.
521527
* @param defaultEncoding The default encoding
528+
* @throws NullPointerException if the input stream is {@code null}.
522529
* @throws IOException thrown if there is a problem reading the file.
523530
* @throws XmlStreamReaderException thrown if the charset encoding could not be determined according to the specification.
524531
* @deprecated Use {@link #builder()}
@@ -545,6 +552,7 @@ public XmlStreamReader(final InputStream inputStream, final String httpContentTy
545552
* </p>
546553
*
547554
* @param file File to create a Reader from.
555+
* @throws NullPointerException if the input is {@code null}.
548556
* @throws IOException thrown if there is a problem reading the file.
549557
* @since 2.11.0
550558
* @deprecated Use {@link #builder()}
@@ -568,6 +576,7 @@ public XmlStreamReader(final Path file) throws IOException {
568576
* </p>
569577
*
570578
* @param url URL to create a Reader from.
579+
* @throws NullPointerException if the input is {@code null}.
571580
* @throws IOException thrown if there is a problem reading the stream of the URL.
572581
*/
573582
public XmlStreamReader(final URL url) throws IOException {
@@ -589,6 +598,7 @@ public XmlStreamReader(final URL url) throws IOException {
589598
*
590599
* @param urlConnection URLConnection to create a Reader from.
591600
* @param defaultEncoding The default encoding
601+
* @throws NullPointerException if the input is {@code null}.
592602
* @throws IOException thrown if there is a problem reading the stream of the URLConnection.
593603
*/
594604
public XmlStreamReader(final URLConnection urlConnection, final String defaultEncoding) throws IOException {

0 commit comments

Comments
 (0)