|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--javax.imageio.stream.ImageInputStreamImpl | +--javax.imageio.stream.MemoryCacheImageInputStream
Åë»óÀÇ InputStream
·ÎºÎÅÍ ÀÔ·ÂÀ» ÃëµæÇÏ´Â ImageInputStream
ÀÇ ±¸ÇöÀÔ´Ï´Ù. ¸Þ¸ð¸®¹åÆÄ¿¡´Â Àû¾îµµ ÆÄ±â À§Ä¡¿Í ÇöÀçÀÇ read À§Ä¡¿ÍÀÇ »çÀÌÀÇ µ¥ÀÌÅͰ¡ ij½¬µË´Ï´Ù.
ÀϹÝÀûÀ¸·Î, Åë»óÀÇ InputStream
·ÎºÎÅÍ ÀоîµéÀÌ´Â °æ¿ì´Â FileCacheImageInputStream
¸¦ »ç¿ëÇÏ´Â °ÍÀ» ÃßõÇÕ´Ï´Ù. ÀÌ Å¬·¡½º´Â ±âÀÔÇØ °¡´ÉÇÑ ÀÏ½ÃÆÄÀÏÀ» ÀÛ¼ºÇÒ ¼ö ¾ø´Â °æ¿ì¸¦ À§Çؼ(¶§¹®¿¡) ÁغñµÇ¾î ÀÖ½À´Ï´Ù.
ÇʵåÀÇ °³¿ä |
Ŭ·¡½º javax.imageio.stream. ImageInputStreamImpl ¿¡¼ »ó¼Ó¹ÞÀº Çʵå |
bitOffset , byteOrder , flushedPos , streamPos |
»ý¼ºÀÚÀÇ °³¿ä | |
MemoryCacheImageInputStream (InputStream stream)
ÁöÁ¤µÈ InputStream ·ÎºÎÅÍ ÀоîµéÀÌ´Â MemoryCacheImageInputStream ¸¦ ±¸ÃàÇÕ´Ï´Ù. |
¸Þ¼ÒµåÀÇ °³¿ä | |
void |
close ()
ÀÌ MemoryCacheImageInputStream ¸¦ ´Ý¾Æ ij½¬¸¦ ÇØ¹æÇÕ´Ï´Ù. |
void |
flushBefore (long pos)
Áö½Ã¹ÞÀº À§Ä¡º¸´Ù ÀüÀÇ ÃʱâÀÇ ½ºÆ®¸² ºÎºÐÀ» ÆÄ±âÇÕ´Ï´Ù. |
boolean |
isCached ()
ÈĹ濡ÀÇ ½ÃÅ©¸¦ °¡´ÉÇÏ°Ô Çϱâ À§Çؼ, ÀÌ ImageInputStream °¡ µ¥ÀÌÅ͸¦ ij½¬Çϱâ À§ÇØ(¶§¹®¿¡),true °¡ µ¹·ÁÁÖ¾îÁý´Ï´Ù. |
boolean |
isCachedFile ()
ÀÌ ImageInputStream ´Â ÆÄÀÏ Ä³½¬¸¦ À¯ÁöÇÏÁö ¾Ê±â ¶§¹®¿¡,false °¡ µ¹·ÁÁÖ¾îÁý´Ï´Ù. |
boolean |
isCachedMemory ()
ÀÌ ImageInputStream ´Â ¸ÞÀÎ ¸Þ¸ð¸® ij½¬¸¦ À¯ÁöÇϱâ À§ÇØ(¶§¹®¿¡),true °¡ µ¹·ÁÁÖ¾îÁý´Ï´Ù. |
int |
read ()
½ºÆ®¸²À¸·ÎºÎÅÍ 1 ¹ÙÀÌÆ®¸¦ Àоîµé¿©, ±×°ÍÀ» 0 ¿¡¼ 255 ±îÁöÀÇ Á¤¼ö·Î¼ µ¹·ÁÁÝ´Ï´Ù. |
int |
read (byte[] b,
int off,
int len)
½ºÆ®¸²À¸·ÎºÎÅÍ len ¹ÙÀÌÆ®±îÁö Àоîµé¿©,b ¿¡ À妽º off ·ÎºÎÅÍ ÀúÀåÇÕ´Ï´Ù. |
Ŭ·¡½º javax.imageio.stream. ImageInputStreamImpl ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
checkClosed , finalize , flush , getBitOffset , getByteOrder , getFlushedPosition , getStreamPosition , length , mark , read , readBit , readBits , readBoolean , readByte , readBytes , readChar , readDouble , readFloat , readFully , readFully , readFully , readFully , readFully , readFully , readFully , readFully , readInt , readLine , readLong , readShort , readUnsignedByte , readUnsignedInt , readUnsignedShort , readUTF , reset , seek , setBitOffset , setByteOrder , skipBytes , skipBytes |
Ŭ·¡½º java.lang. Object ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
clone , equals , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
»ý¼ºÀÚÀÇ »ó¼¼ |
public MemoryCacheImageInputStream(InputStream stream)
InputStream
·ÎºÎÅÍ ÀоîµéÀÌ´Â MemoryCacheImageInputStream
¸¦ ±¸ÃàÇÕ´Ï´Ù.
stream
- read¿øÀÇ InputStream
IllegalArgumentException
- stream
°¡ null
ÀÇ °æ¿ì¸Þ¼ÒµåÀÇ »ó¼¼ |
public int read() throws IOException
ImageInputStream
ÀÇ ±â¼ú: ½ºÆ®¸²³»ÀÇ ºñÆ® ¿ÀÇÁ¼Â(offset)´Â read¸¦ ½Ç½ÃÇϱâ Àü¿¡ 0 ¿¡ ¸®¼ÂÆ® µË´Ï´Ù.
ImageInputStream
³»ÀÇ read
ImageInputStreamImpl
³»ÀÇ read
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìpublic int read(byte[] b, int off, int len) throws IOException
ImageInputStreamImpl
ÀÇ ±â¼ú: len
¹ÙÀÌÆ®±îÁö Àоîµé¿©,b
¿¡ À妽º off
·ÎºÎÅÍ ÀúÀåÇÕ´Ï´Ù. ÀоîµéÀÎ ¹ÙÀÌÆ®¼ö¸¦ µ¹·ÁÁÝ´Ï´Ù. ½ºÆ®¸²ÀÇ ³¡¿¡ À̸£·¶±â ¶§¹®¿¡ ¹ÙÀÌÆ®¸¦ ÀоîµéÀÏ ¼ö ¾ø´Â °æ¿ì´Â -1 À» µ¹·ÁÁÝ´Ï´Ù.
½ºÆ®¸²³»ÀÇ ºñÆ® ¿ÀÇÁ¼Â(offset)´Â read¸¦ ½Ç½ÃÇϱâ Àü¿¡ 0 ¿¡ ¸®¼ÂÆ® ÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù.
¼ºê Ŭ·¡½º¿¡¼ ÀÌ ¸Þ¼Òµå¸¦ ±¸ÇöÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù. ¼ºê Ŭ·¡½º ±¸ÇöÀ¸·Î Á¾·áÇϱâ Àü¿¡ ½ºÆ®¸² À§Ä¡¸¦ °»½ÅÇÕ´Ï´Ù.
ImageInputStream
³»ÀÇ read
ImageInputStreamImpl
³»ÀÇ read
b
- ±âÀÔÇØÁö´Â ¹ÙÀÌÆ® ¹è¿off
- ±âÀÔóÀÇ b
³»ÀÇ °³½Ã À§Ä¡len
- ÀоîµéÀÌ´Â ÃÖ´ë ¹ÙÀÌÆ®¼ö
-1
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìpublic void flushBefore(long pos) throws IOException
ImageInputStream
ÀÇ ±â¼ú: IndexOutOfBoundsException
°¡ ½½·Î¿ì µË´Ï´Ù.
flushBefore
¸¦ È£ÃâÇϸé(ÀÚ), ÀÌ ÀÎÅÍÆäÀ̽º¸¦ ±¸ÇöÇϴ Ŭ·¡½º°¡, ½ºÆ®¸²À¸·ÎºÎÅÍ µ¥ÀÌÅ͸¦ ÀúÀåÇϴµ¥ »ç¿ëÇÏ´Â ¸Þ¸ð¸®³ª µð½ºÅ© ½ºÆäÀ̽ºµîÀÇ ¸®¼Ò½º¸¦ ÇØ¹æÇÒ ¼ö ÀÖ½À´Ï´Ù.
ImageInputStream
³»ÀÇ flushBefore
ImageInputStreamImpl
³»ÀÇ flushBefore
pos
- Ç÷¡½Ã µÇ´Â ÆÄÀÏ Á¢µÎ»çÀÇ ±æÀ̸¦ ³ªÅ¸³»´Â long
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìpublic boolean isCached()
ImageInputStream
°¡ µ¥ÀÌÅ͸¦ ij½¬Çϱâ À§ÇØ(¶§¹®¿¡),true
°¡ µ¹·ÁÁÖ¾îÁý´Ï´Ù.
ImageInputStream
³»ÀÇ isCached
ImageInputStreamImpl
³»ÀÇ isCached
true
isCachedMemory()
,
isCachedFile()
public boolean isCachedFile()
ImageInputStream
´Â ÆÄÀÏ Ä³½¬¸¦ À¯ÁöÇÏÁö ¾Ê±â ¶§¹®¿¡,false
°¡ µ¹·ÁÁÖ¾îÁý´Ï´Ù.
ImageInputStream
³»ÀÇ isCachedFile
ImageInputStreamImpl
³»ÀÇ isCachedFile
false
isCached()
,
isCachedMemory()
public boolean isCachedMemory()
ImageInputStream
´Â ¸ÞÀÎ ¸Þ¸ð¸® ij½¬¸¦ À¯ÁöÇϱâ À§ÇØ(¶§¹®¿¡),true
°¡ µ¹·ÁÁÖ¾îÁý´Ï´Ù.
ImageInputStream
³»ÀÇ isCachedMemory
ImageInputStreamImpl
³»ÀÇ isCachedMemory
true
isCached()
,
isCachedFile()
public void close() throws IOException
MemoryCacheImageInputStream
¸¦ ´Ý¾Æ ij½¬¸¦ ÇØ¹æÇÕ´Ï´Ù. ¼Ò½º InputStream
´Â ´ÝÇôÁöÁö ¾Ê½À´Ï´Ù.
ImageInputStream
³»ÀÇ close
ImageInputStreamImpl
³»ÀÇ close
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
|
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.