|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.io.Reader
|
+--java.io.InputStreamReader
바이트 입력 스트림을 문자 스트림으로 변환해주는 클래스.
| Fields inherited from class java.io.Reader |
lock |
| Constructor Summary | |
InputStreamReader(InputStream in)
새로운 객체를 생성한다. |
|
InputStreamReader(InputStream in,
String encoding_name)
특정 디코더를 사용하는 새로운 객체를 생성한다. |
|
| Method Summary | |
void |
close()
입력 스트림을 닫는다. |
void |
mark(int readAheadLimit)
mark를 설정한다. |
boolean |
markSupported()
mark 기능을 지원하는지 여부를 구한다. |
int |
read()
한 문자를 읽는다. |
int |
read(char[] buf,
int offset,
int len)
문자 배열의 일부분으로 읽어 들인다. |
boolean |
ready()
정보를 읽을 수 있느지 여부를 구한다. |
void |
reset()
읽을 위치를 mark로 설정된 위치로 변경한다. |
long |
skip(long n)
입력 스트림에서 특정 갯수의 문자을 건너뛴다. |
| Methods inherited from class java.io.Reader |
read |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public InputStreamReader(InputStream in)
in - 바이트 정보를 읽을 입력 스트림.
public InputStreamReader(InputStream in,
String encoding_name)
throws UnsupportedEncodingException
in - 바이트 정보를 읽을 입력 스트림.encoding_name - 사용할 디코더.UnsupportedEncodingException - encoding_name이 지원할 수 없는 방식일 때 발생.| Method Detail |
public boolean ready()
throws IOException
ready in class ReaderIOException -
public int read()
throws IOException
read in class ReaderIOException -
public int read(char[] buf,
int offset,
int len)
throws IOException
read in class Readerbuf - 읽은 문자를 저장할 문자 배열.offset - buf에서 읽은 문자를 저장할 시작 위치.len - 읽은 문자의 갯수.IOException -
public long skip(long n)
throws IOException
skip in class Readern - 건너 뛸 문자 수.IOException - public boolean markSupported()
markSupported in class Reader
public void mark(int readAheadLimit)
throws IOException
mark in class Readerjava.io.ReaderIOException -
public void reset()
throws IOException
reset in class ReaderIOException -
public void close()
throws IOException
close in class ReaderIOException -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
AromaSoft Corp. Proprietary and Confidential
(C)opyright 2003 AromaSoft Corp. All right reserved.
Contact : contact@aromasoft.com