/libcore/ojluni/src/main/java/java/io/ |
D | PrintWriter.java | 82 private static Charset toCharset(String csn) in toCharset() argument 85 Objects.requireNonNull(csn, "charsetName"); in toCharset() 87 return Charset.forName(csn); in toCharset() 90 throw new UnsupportedEncodingException(csn); in toCharset() 229 public PrintWriter(String fileName, String csn) in PrintWriter() argument 232 this(toCharset(csn), new File(fileName)); in PrintWriter() 300 public PrintWriter(File file, String csn) in PrintWriter() argument 303 this(toCharset(csn), file); in PrintWriter()
|
D | PrintStream.java | 92 private static Charset toCharset(String csn) in toCharset() argument 95 requireNonNull(csn, "charsetName"); in toCharset() 97 return Charset.forName(csn); in toCharset() 100 throw new UnsupportedEncodingException(csn); in toCharset() 251 public PrintStream(String fileName, String csn) in PrintStream() argument 255 this(false, toCharset(csn), new FileOutputStream(fileName)); in PrintStream() 322 public PrintStream(File file, String csn) in PrintStream() argument 326 this(false, toCharset(csn), new FileOutputStream(file)); in PrintStream()
|
/libcore/ojluni/src/main/java/sun/nio/cs/ |
D | StreamDecoder.java | 67 String csn = charsetName; in forInputStreamReader() local 68 if (csn == null) in forInputStreamReader() 69 csn = Charset.defaultCharset().name(); in forInputStreamReader() 71 if (Charset.isSupported(csn)) in forInputStreamReader() 72 return new StreamDecoder(in, lock, Charset.forName(csn)); in forInputStreamReader() 74 throw new UnsupportedEncodingException (csn); in forInputStreamReader()
|
D | StreamEncoder.java | 54 String csn = charsetName; in forOutputStreamWriter() local 55 if (csn == null) in forOutputStreamWriter() 56 csn = Charset.defaultCharset().name(); in forOutputStreamWriter() 58 if (Charset.isSupported(csn)) in forOutputStreamWriter() 59 return new StreamEncoder(out, lock, Charset.forName(csn)); in forOutputStreamWriter() 61 throw new UnsupportedEncodingException (csn); in forOutputStreamWriter()
|
/libcore/ojluni/annotations/sdk/nullability/java/io/ |
D | PrintWriter.annotated.java | 46 ….NonNull java.lang.String fileName, @libcore.util.NonNull java.lang.String csn) throws java.io.Fil… in PrintWriter() argument 50 …ore.util.NonNull java.io.File file, @libcore.util.NonNull java.lang.String csn) throws java.io.Fil… in PrintWriter() argument
|
/libcore/ojluni/src/main/java/java/util/ |
D | Formatter.java | 1873 private static Charset toCharset(String csn) in toCharset() argument 1876 Objects.requireNonNull(csn, "charsetName"); in toCharset() 1878 return Charset.forName(csn); in toCharset() 1881 throw new UnsupportedEncodingException(csn); in toCharset() 2036 public Formatter(String fileName, String csn) in Formatter() argument 2039 this(fileName, csn, Locale.getDefault(Locale.Category.FORMAT)); in Formatter() 2075 public Formatter(String fileName, String csn, Locale l) in Formatter() argument 2078 this(toCharset(csn), l, new File(fileName)); in Formatter() 2147 public Formatter(File file, String csn) in Formatter() argument 2150 this(file, csn, Locale.getDefault(Locale.Category.FORMAT)); in Formatter() [all …]
|
D | Scanner.java | 596 private static Charset toCharset(String csn) { in toCharset() argument 597 Objects.requireNonNull(csn, "charsetName"); in toCharset() 599 return Charset.forName(csn); in toCharset()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | PrintStreamTest.java | 58 …public MockPrintStream(String fileName, String csn) throws FileNotFoundException, UnsupportedEncod… in MockPrintStream() argument 59 super(fileName, csn); in MockPrintStream()
|