|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: NESTED | Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
public interface ObjectInput
DataInput ÀÎÅÍÆäÀ̽º¸¦ È®ÀåÇØ °´Ã¼ÀÇ read°¡ »ý±âµµ·Ï ÇÕ´Ï´Ù. DataInput´Â ¿ø½ÃÇüÀÇ ÀÔ·ÂÀ» ÇÒ ¼ö ÀÖ´Â ¸Þ¼µå¸¦ Æ÷ÇÔÇÕ´Ï´Ù¸¸, ObjectInput´Â ÀÌ ÀÎÅÍÆäÀ̽º¸¦ È®ÀåÇØ, °´Ã¼, ¹è¿, String¸¦ Æ÷ÇÔÇϵµ·Ï ÇÕ´Ï´Ù.
InputStream,
ObjectOutputStream,
ObjectInputStream | ¸Þ¼µå °³¿ä | |
|---|---|
int |
available ()
ºí·Ï ÇÏÁö ¾Ê°í ÀоîµéÀÏ ¼ö ÀÖ´Â ¹ÙÀÌÆ®¼ö¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
void |
close ()
ÀÔ·Â ½ºÆ®¸²À» ´Ý½À´Ï´Ù. |
int |
read ()
µ¥ÀÌÅÍÀÇ ¹ÙÀÌÆ®¸¦ ÀоîµéÀÔ´Ï´Ù. |
int |
read (byte[] b)
¹ÙÀÌÆ® ¹è¿¿¡ ÀоîµéÀÔ´Ï´Ù. |
int |
read (byte[] b,
int off,
int len)
¹ÙÀÌÆ® ¹è¿¿¡ ÀоîµéÀÔ´Ï´Ù. |
Object |
readObject ()
°´Ã¼¸¦ Àбâ, ±×°ÍÀ» ¸®ÅÏÇÕ´Ï´Ù. |
long |
skip (long n)
ÀÔ·ÂÀ» n ¹ÙÀÌÆ®¸¸ ½ºÅµ ÇÕ´Ï´Ù. |
| ÀÎÅÍÆäÀ̽º java.io. DataInput ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
|---|
readBoolean,
readByte,
readChar,
readDouble,
readFloat,
readFully,
readFully,
readInt,
readLine,
readLong,
readShort,
readUnsignedByte,
readUnsignedShort,
readUTF,
skipBytes |
| ¸Þ¼µåÀÇ »ó¼¼ |
|---|
Object readObject()
throws ClassNotFoundException,
IOException
ClassNotFoundException - Á÷·ÄÈ µÈ °´Ã¼ÀÇ Å¬·¡½º°¡ ¹ß°ßµÇÁö ¾Ê¾Ò´ø °æ¿ì
IOException - ÀÔÃâ·Â¿¡ °ü·ÃµÈ ¿¹¿Ü°¡ ¹ß»ýÇßÀ» °æ¿ì
int read()
throws IOException
IOException - ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
int read(byte[] b)
throws IOException
b - µ¥ÀÌÅÍÀÇ readóÀÇ ¹öÆÛ
IOException - ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
int read(byte[] b,
int off,
int len)
throws IOException
b - µ¥ÀÌÅÍÀÇ readóÀÇ ¹öÆÛoff - µ¥ÀÌÅÍÀÇ °³½Ã ¿ÀÇÁ¼Â(offset)len - ÀÐÈ÷´Â ÃÖ´ë ¹ÙÀÌÆ®¼ö
IOException - ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
long skip(long n)
throws IOException
n - ½ºÅµ ÇÏ´Â ¹ÙÀÌÆ®¼ö
IOException - ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
int available()
throws IOException
IOException - ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
void close()
throws IOException
IOException - ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: NESTED | Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.