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

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

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

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

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

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

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

This
class is a character input stream that uses a character
array as the source of the
characters it returns. You create a
CharArrayReader by specifying the character array
(or portion of an array) it is to read from.
CharArrayReader defines the usual
Reader methods and supports the mark(
)

and reset( )
methods. Note that the character array you pass to the
CharArrayReader( ) constructor is not copied. This
means that changes you make to the elements of the array after you
create the input stream affect the values read from the array.
CharArrayReader is the character-array analog of
ByteArrayInputStream and is similar to
StringReader.


Figure 9-7. java.io.CharArrayReader

public class 

CharArrayReader extends Reader {
// Public Constructors
public

CharArrayReader (char[ ]

buf );
public

CharArrayReader (char[ ]

buf , int

offset , int

length );
// Public Methods Overriding Reader
public void

close ( );
public void

mark (int

readAheadLimit ) throws IOException;
public boolean

markSupported ( ); constant
public int

read ( ) throws IOException;
public int

read (char[ ]

b , int

off , int

len ) throws IOException;
public boolean

ready ( ) throws IOException;
public void

reset ( ) throws IOException;
public long

skip (long

n ) throws IOException;
// Protected Instance Fields
protected char[ ]

buf ;
protected int

count ;
protected int

markedPos ;
protected int

pos ;
}



/ 1191