📄 right4_7_2.htm
字号:
<html><head><title>JAVA编程语言</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><link rel="stylesheet" href="../../../css/text.css" type="text/css"></head><body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" ><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td valign="top"> <table width="96%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF"> <tr> <td valign="top"> <p class="pt9-black"> <b>◇ 生成流对象</b><br> public InputStreamReader(InputStream in); <font color="339900"><br> /*in是字节流,而InputStreamReader是字符流,但是其来源是字节流in,<br> 因此InputStreamReader就可以把字节流in转换成字符流处理。/*</font><br> <br> public InputStreamReader(InputStream in,String enc) throws UnsupportedEncodingException;<br> <font color="339900">/*enc是编码方式,就是从字节流到字符流进行转换时所采用的编码方式,<br> 例如 ISO8859-1,UTF-8,UTF-16等等*/</font><br> <br> public OutputStreamWriter(OutputStream out);<br> <font color="339900">/*out是字节流,而OutputStreamReader是字符流 */</font><br> <br> public OutputStreamWriter(OutputStream out,String enc) throws UnsupportedEncodingException; <font color="339900">//enc是编码方式</font><br> <br> InputStreamReader和OutputStreamWriter的方法:<br> <br> <b>◇ 读入和写出字符</b><br> 基本同Reader和Writer。<br> <br> <b>◇ 获取当前编码方式</b><br> public String getEncoding();<br> <br> <b>◇ 关闭流</b><br> public void close() throws IOException;<br> <br> </p> </td> </tr> </table> </td> </tr></table></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -