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.
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.
- duplicates
-
JDK-6772681 Byte array based Scanner has no constructor that takes a Charset
-
- Closed
-
-
JDK-8183743 Umbrella: add overloads that take a Charset parameter
-
- Resolved
-
- relates to
-
JDK-8183743 Umbrella: add overloads that take a Charset parameter
-
- Resolved
-