|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 | |||||||||
java.lang.Objectjava.io.Reader
java.io.FilterReader
java.io.PushbackReader
public class PushbackReader
문자를 스트림에 push back(되밀치는) 할 수 있는 문자 스트림 리더입니다.
| 필드의 개요 |
|---|
| 클래스 java.io. FilterReader 로부터 상속된 필드 |
|---|
in |
| 클래스 java.io. Reader 로부터 상속된 필드 |
|---|
lock |
| 생성자 의 개요 | |
|---|---|
PushbackReader (Reader in)
1 문자 분의 push back(되밀치는) 버퍼를 가지는, 새로운 push back(되밀치는) 리더를 작성합니다. |
|
PushbackReader (Reader in,
int size)
지정된 사이즈의 push back(되밀치는) 버퍼를 가지는, 새로운 push back(되밀치는) 리더를 작성합니다. |
|
| 메소드의 개요 | |
|---|---|
void |
close ()
스트림을 닫아, 거기에 관련하는 모든 system resource를 해제합니다. |
void |
mark (int readAheadLimit)
스트림의 현재 위치에 마크를 설정합니다. |
boolean |
markSupported ()
이 스트림이 mark() 오퍼레이션을 지원할지 어떨지, 지원하지 않는 것은 어떤 것인가를 조사합니다. |
int |
read ()
단일의 문자를 읽어들입니다. |
int |
read (char[] cbuf,
int off,
int len)
배열의 일부에 문자를 읽어들입니다. |
boolean |
ready ()
이 스트림이 읽어들여 가능한가 어떤가를 판정합니다. |
void |
reset ()
스트림을 리셋 합니다. |
long |
skip (long n)
문자를 스킵 합니다. |
void |
unread (char[] cbuf)
push back(되밀치는) 버퍼의 선두에 문자 배열을 카피하는 것에 의해, 문자 배열을 push back(되밀치는) 합니다. |
void |
unread (char[] cbuf,
int off,
int len)
push back(되밀치는) 버퍼의 선두에 문자 배열의 일부를 카피하는 것에 의해, 그러한 문자를 push back(되밀치는) 합니다. |
void |
unread (int c)
push back(되밀치는) 버퍼의 선두에 1 문자를 카피하는 것에 의해, 그 문자를 push back(되밀치는) 합니다. |
| 클래스 java.io. Reader 로부터 상속된 메소드 |
|---|
read , read |
| 클래스 java.lang. Object 로부터 상속된 메소드 |
|---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
| 생성자 의 상세 |
|---|
public PushbackReader(Reader in,
int size)
in - 문자의 read원의 리더size - push back(되밀치는) 버퍼의 사이즈
IllegalArgumentException - 사이즈가 0 이하의 경우public PushbackReader(Reader in)
in - 문자의 read원의 리더| 메소드의 상세 |
|---|
public int read()
throws IOException
FilterReader 내의 read IOException - 입출력 에러가 발생했을 경우
public int read(char[] cbuf,
int off,
int len)
throws IOException
FilterReader 내의 read cbuf - 전송처 버퍼off - 문자의 기입 개시 오프셋(offset)len - 읽어들이는 문자의 최대수
IOException - 입출력 에러가 발생했을 경우
public void unread(int c)
throws IOException
(char) c 를 가집니다.
c - push back(되밀치는) 되는 문자를 나타내는 int 치
IOException - push back(되밀치는) 버퍼가 가득한 경우, 또는 다른 입출력 에러가 발생했을 경우
public void unread(char[] cbuf,
int off,
int len)
throws IOException
cbuf[off] 를 가져, 그 다음의 문자는 값 cbuf[off+1] 를 가집니다. 그 이후도 이와 같이 계속됩니다.
cbuf - 문자 배열off - 문자의 push back(되밀치는) 개시 오프셋(offset)len - push back(되밀치는) 하는 문자수
IOException - push back(되밀치는) 버퍼에 충분한 스페이스가 없는 경우, 또는 다른 입출력 에러가 발생했을 경우
public void unread(char[] cbuf)
throws IOException
cbuf[0] 을 가져, 그 다음의 문자는 값 cbuf[1] 을 가집니다. 그 이후도 이와 같이 계속됩니다.
cbuf - push back(되밀치는) 하는 문자 배열
IOException - push back(되밀치는) 버퍼에 충분한 스페이스가 없는 경우, 또는 다른 입출력 에러가 발생했을 경우
public boolean ready()
throws IOException
FilterReader 내의 ready IOException - 입출력 에러가 발생했을 경우
public void mark(int readAheadLimit)
throws IOException
PushbackReader 클래스의 mark 는 항상 예외를 throw 합니다.
FilterReader 내의 mark readAheadLimit - 마크를 보관 유지하면서 읽어들일 수가 있는 문자수의 상한. 이 수의 문자를 읽어들인 후에 스트림을 리셋 하려고 하면(자) 실패하는 경우가 있다
IOException - mark 메소드는 지원되어 있지 않기 때문에, 항상 throw 된다
public void reset()
throws IOException
PushbackReader 의 reset 메소드는 항상 예외를 throw 합니다.
FilterReader 내의 reset IOException - reset 메소드는 지원되어 있지 않기 때문에, 항상 throw 된다public boolean markSupported()
FilterReader 내의 markSupported
public void close()
throws IOException
Closeable 내의 close FilterReader 내의 close IOException - 입출력 에러가 발생했을 경우
public long skip(long n)
throws IOException
FilterReader 내의 skip n - 스킵 하는 문자수
IllegalArgumentException - n 가 0 보다 작은 값의 경우
IOException - 입출력 에러가 발생했을 경우
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.