Lines Matching refs:charsetName
617 * @param charsetName The encoding type used to convert bytes from the
622 public Scanner(InputStream source, String charsetName) {
623 this(makeReadable(Objects.requireNonNull(source, "source"), toCharset(charsetName)),
633 Objects.requireNonNull(csn, "charsetName");
665 * @param charsetName The encoding type used to convert bytes from the file
671 public Scanner(File source, String charsetName)
674 this(Objects.requireNonNull(source), toDecoder(charsetName));
683 private static CharsetDecoder toDecoder(String charsetName) {
684 Objects.requireNonNull(charsetName, "charsetName");
686 return Charset.forName(charsetName).newDecoder();
688 throw new IllegalArgumentException(charsetName);
723 * @param charsetName
732 public Scanner(Path source, String charsetName) throws IOException {
733 this(Objects.requireNonNull(source), toCharset(charsetName));
773 * @param charsetName The encoding type used to convert bytes from the
778 public Scanner(ReadableByteChannel source, String charsetName) {
779 this(makeReadable(Objects.requireNonNull(source, "source"), toDecoder(charsetName)),