Java in a Nutshell, 5th Edition [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Java in a Nutshell, 5th Edition [Electronic resources] - نسخه متنی

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید



FileReader is a
convenience subclass of InputStreamReader that is
useful when you want to read
text (as opposed to binary data)
from a file. You create a FileReader by specifying
the file to be read in any of three possible forms. The
FileReader constructor internally creates a
FileInputStream to read bytes from the specified
file and uses the functionality of its superclass,
InputStreamReader, to convert those bytes from
characters in the local encoding to the
Unicode characters used by Java.
Because FileReader is a trivial subclass of
InputStreamReader, it does not define any
read( ) methods or other methods of its own.
Instead, it inherits all its methods from its superclass. If you want
to read Unicode characters from a file that uses some encoding other
than the default encoding for the locale, you must explicitly create
your own InputStreamReader to perform the


byte-to-character conversion.


Figure 9-19. java.io.FileReader

public class 

FileReader extends InputStreamReader {
// Public Constructors
public

FileReader (FileDescriptor

fd );
public

FileReader (File

file ) throws FileNotFoundException;
public

FileReader (String

fileName ) throws FileNotFoundException;
}



/ 1191