字符通向字节流的桥梁---- OutputStreamWriter

OutputStream out = System.out;

OutputStreamWriter osw = new OutputStreamWriter(out);

BufferedWriter w = new BufferedWriter(osw);

osw.write(line.toUpperCase());

osw.newLine();

osw.fulsh();

-------------------------

BufferedWriter bufw = new BufferedWriter(new OutputStreamWriter(System.out));

你可能感兴趣的:(字符通向字节流的桥梁---- OutputStreamWriter)