|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--java.io.Reader | +--java.io.CharArrayReader
ij¸¯ÅÍ ÀÔ·Â ½ºÆ®¸²À¸·Î¼ »ç¿ëÇϴ ij¸¯ÅÍ ¹öÆÛ¸¦ ±¸ÇöÇÕ´Ï´Ù.
ÇʵåÀÇ °³¿ä | |
protected char[] |
buf
ij¸¯ÅÍ ¹öÆÛÀÔ´Ï´Ù. |
protected int |
count
ÀÌ ¹öÆÛÀÇ ¸¶Áö¸· À妽ºÀÔ´Ï´Ù. |
protected int |
markedPos
¹öÆÛ³»ÀÇ ¸¶Å© À§Ä¡ÀÔ´Ï´Ù. |
protected int |
pos
ÇöÀçÀÇ ¹öÆÛÀÇ À§Ä¡ÀÔ´Ï´Ù. |
Ŭ·¡½º java.io. Reader ¿¡¼ »ó¼Ó¹ÞÀº Çʵå |
lock |
»ý¼ºÀÚÀÇ °³¿ä | |
CharArrayReader (char[] buf)
ÁöÁ¤µÈ ij¸¯ÅÍÀÇ ¹è¿·ÎºÎÅÍ CharArrayReader ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
|
CharArrayReader (char[] buf,
int offset,
int length)
ÁöÁ¤µÈ ij¸¯ÅÍÀÇ ¹è¿·ÎºÎÅÍ CharArrayReader ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
¸Þ¼ÒµåÀÇ °³¿ä | |
void |
close ()
½ºÆ®¸²À» ´Ý½À´Ï´Ù. |
void |
mark (int readAheadLimit)
½ºÆ®¸²ÀÇ ÇöÀç À§Ä¡¿¡ ¸¶Å©¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
boolean |
markSupported ()
ÀÌ ½ºÆ®¸²ÀÌ, ½ÇÇàÇÏ´Â mark() Á¶ÀÛÀ» ¼Æ÷Æ®ÇÒÁö ¾î¶³Áö¸¦ ÅëÁöÇÕ´Ï´Ù. |
int |
read ()
´ÜÀÏÀÇ Ä³¸¯Å͸¦ ÀоîµéÀÔ´Ï´Ù. |
int |
read (char[] b,
int off,
int len)
¹è¿ÀÇ ÀϺο¡ ij¸¯Å͸¦ ÀоîµéÀÔ´Ï´Ù. |
boolean |
ready ()
½ºÆ®¸²ÀÌ Àоîµé¿© °¡´ÉÇÑ »óÅÂÀΰ¡ ¾î¶²°¡¸¦ ÅëÁöÇÕ´Ï´Ù. |
void |
reset ()
Á÷ÀüÀÇ ¸¶Å© À§Ä¡¿¡ ½ºÆ®¸²À» ¸®¼ÂÆ® ÇÕ´Ï´Ù. |
long |
skip (long n)
ij¸¯Å͸¦ ½ºÅµ ÇÕ´Ï´Ù. |
Ŭ·¡½º java.io. Reader ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
read |
Ŭ·¡½º java.lang. Object ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
ÇʵåÀÇ »ó¼¼ |
protected char[] buf
protected int pos
protected int markedPos
protected int count
»ý¼ºÀÚÀÇ »ó¼¼ |
public CharArrayReader(char[] buf)
buf
- ÀÔ·Â ¹öÆÛ (Ä«ÇǵǾî ÀÖÁö ¾Ê´Ù)public CharArrayReader(char[] buf, int offset, int length)
buf
- ÀÔ·Â ¹öÆÛ (Ä«ÇǵǾî ÀÖÁö ¾Ê´Ù)offset
- ÀоîµéÀÌ´Â ÃÖÃÊÀÇ Ä³¸¯ÅÍ ¿ÀÇÁ¼Â(offset)length
- ÀоîµéÀ̴ ij¸¯Åͼö¸Þ¼ÒµåÀÇ »ó¼¼ |
public int read() throws IOException
Reader
³»ÀÇ read
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìpublic int read(char[] b, int off, int len) throws IOException
Reader
³»ÀÇ read
b
- Àü¼Ûó ¹öÆÛoff
- ij¸¯ÅÍÀÇ ÀúÀå °³½Ã ¿ÀÇÁ¼Â(offset)len
- ÀоîµéÀ̴ ij¸¯ÅÍÀÇ ÃÖ´ë¼ö
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìpublic long skip(long n) throws IOException
Reader
³»ÀÇ skip
n
- ½ºÅµ Çϴ ij¸¯Åͼö
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìpublic boolean ready() throws IOException
Reader
³»ÀÇ ready
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìpublic boolean markSupported()
Reader
³»ÀÇ markSupported
public void mark(int readAheadLimit) throws IOException
Reader
³»ÀÇ mark
readAheadLimit
- ¸¶Å©¸¦ º¸°ü À¯ÁöÇÏ¸é¼ ÀоîµéÀÏ ¼ö°¡ Àִ ij¸¯ÅͼöÀÇ »óÇÑ. ½ºÆ®¸²¿¡´Â ij¸¯ÅÍ ¹è¿·ÎºÎÅÍ ÀԷµǹǷÎ, ½ÇÁ¦ÀÇ »óÇÑÀº ¾ø´Ù. ±× ¶§¹®¿¡, ÀÌ Àμö´Â ¹«½ÃµÈ´Ù
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìpublic void reset() throws IOException
Reader
³»ÀÇ reset
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìpublic void close()
Reader
³»ÀÇ close
|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
Java, Java 2 D, ¹× JDBC ´Â ¹Ì±¹ ¹× ±× ¿ÜÀÇ ³ª¶ó¿¡ ÀÖ¾î¼ÀÇ ¹Ì±¹ Sun Microsystems, Inc. ÀÇ »óÇ¥ ȤÀº µî·Ï»óÇ¥ÀÔ´Ï´Ù.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.