|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjava.io.Reader
java.io.FilterReader
public abstract class FilterReader
ÇÊÅÍ Ã³¸®µÈ ij¸¯ÅÍ ¶óÀÎ ½ºÆ®¸²À» ÀоîµéÀ̱â À§ÇÑ Ãß»ó Ŭ·¡½ºÀÔ´Ï´Ù. FilterReader
µðÆúÆ®ÀÇ ¸Þ¼µå¿¡¼´Â º¸Á¸µÈ ½ºÆ®¸²¿¡ ¸ðµç ¿ä±¸°¡ °Ç³×¹Þ½À´Ï´Ù. FilterReader
¼ºê Ŭ·¡½º´Â ÀÌ·¯ÇÑ ¸Þ¼µåÀÇ ÀϺθ¦ ¿À¹ö¶óÀ̵å(override) ÇÕ´Ï´Ù. ¶Ç, ¸Þ¼µå¿Í Çʵ带 Ãß°¡ÇÒ ¼öµµ ÀÖ½À´Ï´Ù.
ÇÊµå °³¿ä | |
---|---|
protected Reader |
in
±âº»ÀÌ µÇ´Â ¹®ÀÚ ÀÔ·Â ½ºÆ®¸²ÀÔ´Ï´Ù. |
Ŭ·¡½º java.io. Reader ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå |
---|
lock |
»ý¼ºÀÚ °³¿ä | |
---|---|
protected |
FilterReader (Reader in)
ÇÊÅÍ Ã³¸®µÈ »õ·Î¿î ¸®´õ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
¸Þ¼µå °³¿ä | |
---|---|
void |
close ()
½ºÆ®¸²À» ´Ý½À´Ï´Ù. |
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)
¹®ÀÚ¸¦ ½ºÅµ ÇÕ´Ï´Ù. |
Ŭ·¡½º java.io. Reader ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
read,
read |
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ÇʵåÀÇ »ó¼¼ |
---|
protected Reader in
»ý¼ºÀÚ »ó¼¼ |
---|
protected FilterReader(Reader in)
in
- ±âº»ÀÌ µÇ´Â ½ºÆ®¸²À» Á¦°øÇÏ´Â Reader °´Ã¼
NullPointerException
- in
°¡ null
ÀÎ °æ¿ì¸Þ¼µåÀÇ »ó¼¼ |
---|
public int read() throws IOException
Reader
³»ÀÇ read
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìpublic int read(char[] cbuf, int off, int len) throws IOException
Reader
³»ÀÇ read
cbuf
- Àü¼Ûó ¹öÆÛoff
- ¹®ÀÚÀÇ Æ÷ÇÔ °³½Ã ¿ÀÇÁ¼Â(offset)len
- ÀоîµéÀÌ´Â ¹®ÀÚÀÇ ÃÖ´ë¼ö
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìpublic long skip(long n) throws IOException
Reader
³»ÀÇ skip
n
- ½ºÅµ ÇÏ´Â ¹®ÀÚ¼ö
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìpublic boolean ready() throws IOException
Reader
³»ÀÇ ready
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìpublic boolean markSupported()
Reader
³»ÀÇ markSupported
public void mark(int readAheadLimit) throws IOException
Reader
³»ÀÇ mark
readAheadLimit
- ¸¶Å©¸¦ º¸°ü À¯ÁöÇÏ¸é¼ ÀоîµéÀÏ ¼ö ÀÖ´Â ¹®ÀÚ¼öÀÇ »óÇÑ. ÀÌ ¼öÀÇ ¹®ÀÚ¸¦ ÀоîµéÀÎ ÈÄ¿¡ ½ºÆ®¸²À» ¸®¼Â ÇÏ·Á°í ÇÏ¸é ½ÇÆÐÇÏ´Â °æ¿ì°¡ ÀÖ´Ù
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìpublic void reset() throws IOException
Reader
³»ÀÇ reset
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìpublic void close() throws IOException
Closeable
³»ÀÇ close
Reader
³»ÀÇ close
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.