|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
public interface ObjectInput
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
- 데이터의 읽기처의 버퍼
IOException
- 입출력 에러가 발생했을 경우int read(byte[] b, int off, int len) throws IOException
b
- 데이터의 읽기처의 버퍼off
- 데이터의 개시 오프셋(offset)len
- 읽히는 최대 바이트수
IOException
- 입출력 에러가 발생했을 경우long skip(long n) throws IOException
n
- 스킵 하는 바이트수
IOException
- 입출력 에러가 발생했을 경우int available() throws IOException
IOException
- 입출력 에러가 발생했을 경우void close() throws IOException
IOException
- 입출력 에러가 발생했을 경우
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.