Duplicate :
|
|
Duplicate :
|
|
Relates :
|
Scanner currently has the following constructors that take a charset name: Scanner(File source, String charsetName) Scanner(InputStream source, String charsetName) Scanner(Path source, String charsetName) Scanner(ReadableByteChannel source, String charsetName) It would be nice to have overloads that take actual Charset objects instead of charset names, which must be looked up and converted into Charset objects.