首页 > 代码库 > 字符通向字节流的桥梁---- OutputStreamWriter

字符通向字节流的桥梁---- 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));