Topic: FlieInputStream和FileReader有什么区别,分别用在什么情况下

  Print this page

1.FlieInputStream和FileReader有什么区别,分别用在什么情况下 Copy to clipboard
Posted by: loveAries
Posted on: 2005-05-31 13:35

我知道FlieInputStream是字节输入流;FileReader是字符输入流,但是不知道他们真正的区别,不知道在什么情况下该用那一个.请高手用浅显的话解释清楚,在这先谢谢了.

2.Re:FlieInputStream和FileReader有什么区别,分别用在什么情况下 [Re: loveAries] Copy to clipboard
Posted by: loveAries
Posted on: 2005-05-31 19:43

我晕~~~现在这个网站的人气是越来越不行了啊~~~~~~~~~~~~~~~

3.Re:FlieInputStream和FileReader有什么区别,分别用在什么情况下 [Re: loveAries] Copy to clipboard
Posted by: why
Posted on: 2005-05-31 20:17

又要高手
又要浅显
又要解释清楚
才不過几個小時便抱怨
卻不肯自己好好讀書
我們才晕~晕~晕~

You have already said: FlieInputStream是字节输入流;FileReader是字符输入流
字节 vs 字符
What else did you ask for?
What else could we say?

http://java.sun.com/j2se/1.4.2/docs/api/java/io/FileReader.html
public class FileReader
extends InputStreamReader
Convenience class for reading character files. The constructors of this
class assume that the default character encoding and the default
byte-buffer size are appropriate. To specify these values yourself,
construct an InputStreamReader on a FileInputStream.


FileReader is meant for reading streams of characters. For reading streams
of raw bytes, consider using a FileInputStream.

4.Re:FlieInputStream和FileReader有什么区别,分别用在什么情况下 [Re: loveAries] Copy to clipboard
Posted by: loveAries
Posted on: 2005-06-01 13:22

以前我经常来这~~也很佩服你。但是现在觉得!!!!也不过尔尔!!!!
懂几句“鸟”语就很了不起吗???说别人的时候首先要反省自己???

5.Re:FlieInputStream和FileReader有什么区别,分别用在什么情况下 [Re: loveAries] Copy to clipboard
Posted by: why
Posted on: 2005-06-02 03:12

loveAries wrote:
以前我经常来这~~也很佩服你。但是现在觉得!!!!也不过尔尔!!!!
懂几句“鸟”语就很了不起吗???说别人的时候首先要反省自己???

I admit that I'm 不过尔尔 and have nothing to be 佩服, but at least I would search, read, and learn by myself, have enough patience when I am asking a question, and would not say something like 懂几句“鸟”语就很了不起.

What do you think I should 反省?Smile

6.Re:FlieInputStream和FileReader有什么区别,分别用在什么情况下 [Re: loveAries] Copy to clipboard
Posted by: wind520sand
Posted on: 2005-06-02 09:15

同意 Why!问别人就要虚心啊!做人要厚道!
你到了社会上你问人技术的问题!没几个会说真心话的!
现在有这么好的地方!虚心点啊!
年轻人

7.Re:FlieInputStream和FileReader有什么区别,分别用在什么情况下 [Re: loveAries] Copy to clipboard
Posted by: cgd_60802
Posted on: 2005-06-02 14:06

我也顶一下
支持why,loveAries是要谦虚一下,这样可不好。现在的java中文的书和资料越来越多了,你学起来是很简单(认为你懂点英语),可是你要知道要想彻底地读懂java英语是很重要的。

8.Re:FlieInputStream和FileReader有什么区别,分别用在什么情况下 [Re: loveAries] Copy to clipboard
Posted by: wanghang110119
Posted on: 2005-06-03 10:34

搂主这位兄弟这种学习态度很不行啊!
元老同志说得很对,我虽然也不是什么高手
但是当你提出这个问题的时候,会感到很奇怪,
这样的问题是不是找个文档看看就ok拉!
别人给你解答,指出你的错误的时候,不当不感谢
居然恶语相向,很不理解你!
该反省是你自己啊!


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923