|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.Reader
바이트 입력 스트림을 문자 스트림으로 변환해주는 클래스를 위한 추상클래스.
Field Summary | |
protected Object |
lock
|
Constructor Summary | |
protected |
Reader()
Reader를 생성한다. |
protected |
Reader(Object lock)
Reader를 생성한다. |
Method Summary | |
abstract void |
close()
입력 스트림을 닫는다. |
void |
mark(int readLimit)
mark를 설정한다. |
boolean |
markSupported()
mark 기능을 지원하는지 여부를 구한다. |
int |
read()
한 문자를 읽는다. |
int |
read(char[] buf)
문자배열로 문자를 읽는다. |
abstract int |
read(char[] buf,
int offset,
int count)
문자배열 특정 부분으로 문자를 읽는다. |
boolean |
ready()
현 입력스트림에서 문자를 읽을 수 있는 지 여부를 구한다. |
void |
reset()
읽을 위치를 mark로 설정된 위치로 변경한다. |
long |
skip(long count)
특정 갯수의 문자를 읽지 않고 건너 뛴다. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Object lock
Constructor Detail |
protected Reader()
protected Reader(Object lock)
Method Detail |
public int read() throws IOException
IOException
- public int read(char[] buf) throws IOException
buf
- 읽을 문자를 저장할 문자배열.IOException
- public abstract int read(char[] buf, int offset, int count) throws IOException
buf
- 읽을 문자를 저장할 문자배열.offset
- 읽은 문자를 저장할 시작 위치.count
- 읽을 문자 갯수.IOException
- public abstract void close() throws IOException
IOException
- public void mark(int readLimit) throws IOException
IOException
- public boolean markSupported()
public boolean ready() throws IOException