@@ -80,25 +80,25 @@ public static Document load(File in, @Nullable String charsetName, String baseUr
80
80
/**
81
81
* Parses a Document from an input steam.
82
82
* @param in input stream to parse. The stream will be closed after reading.
83
- * @param charsetName character set of input
83
+ * @param charsetName character set of input (optional)
84
84
* @param baseUri base URI of document, to resolve relative links against
85
85
* @return Document
86
86
* @throws IOException on IO error
87
87
*/
88
- public static Document load (InputStream in , String charsetName , String baseUri ) throws IOException {
88
+ public static Document load (InputStream in , @ Nullable String charsetName , String baseUri ) throws IOException {
89
89
return parseInputStream (in , charsetName , baseUri , Parser .htmlParser ());
90
90
}
91
91
92
92
/**
93
93
* Parses a Document from an input steam, using the provided Parser.
94
94
* @param in input stream to parse. The stream will be closed after reading.
95
- * @param charsetName character set of input
95
+ * @param charsetName character set of input (optional)
96
96
* @param baseUri base URI of document, to resolve relative links against
97
97
* @param parser alternate {@link Parser#xmlParser() parser} to use.
98
98
* @return Document
99
99
* @throws IOException on IO error
100
100
*/
101
- public static Document load (InputStream in , String charsetName , String baseUri , Parser parser ) throws IOException {
101
+ public static Document load (InputStream in , @ Nullable String charsetName , String baseUri , Parser parser ) throws IOException {
102
102
return parseInputStream (in , charsetName , baseUri , parser );
103
103
}
104
104
0 commit comments