|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
바이트 정보를 읽어서 다른 타입의 정보로 변환하는 입력 스트림을 위한 인터페이스.
Method Summary | |
boolean |
readBoolean()
입력 스트림에서 한 바이트를 읽은 뒤 0이 아니면 true 0이면 false를 리턴한다. |
byte |
readByte()
입력 스트림에서 한 바이트를 읽는다. |
char |
readChar()
입력 스트림에서 char형 정보를 읽는다. |
double |
readDouble()
|
float |
readFloat()
|
void |
readFully(byte[] b)
바이트 배열로 정보를 읽는다. |
void |
readFully(byte[] b,
int off,
int len)
바이트 배열 일부분으로 정보를 읽는다. |
int |
readInt()
입력 스트림에서 정수형 정보를 읽는다. |
long |
readLong()
입력 스트림에서 Long형 정보를 읽는다. |
short |
readShort()
입력 스트림에서 두 바이트를 읽는다. |
int |
readUnsignedByte()
입력 스트림에서 한 바이트를 읽고 unsigned 바이트로 처리해 정수형 정보로 변환 후 리턴한다. |
int |
readUnsignedShort()
입력 스트림에서 두 바이트를 읽고 unsigned short로 처리해 정수형 정보로 변환 후 리턴한다. |
String |
readUTF()
입력 스트림에서 UTF형식 정보를 읽어 문자열을 만들어 리턴한다. |
int |
skipBytes(int n)
입력 스트림에서 정보를 읽지 않고 건너뛴다. |
Method Detail |
public void readFully(byte[] b) throws IOException
b
- 읽은 정보를 저장할 배열.IOException
- public void readFully(byte[] b, int off, int len) throws IOException
b
- 읽은 정보를 저장할 배열.off
- 저장 시작 위치.len
- 읽을 정보 갯수.IOException
- public int skipBytes(int n) throws IOException
n
- 건너 뛸 갯수.IOException
- public boolean readBoolean() throws IOException
IOException
- public byte readByte() throws IOException
IOException
- public int readUnsignedByte() throws IOException
IOException
- public short readShort() throws IOException
IOException
- public int readUnsignedShort() throws IOException
IOException
- public char readChar() throws IOException
IOException
- public int readInt() throws IOException
IOException
- public long readLong() throws IOException
IOException
- public float readFloat() throws IOException
public double readDouble() throws IOException
public String readUTF() throws IOException
IOException
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
AromaSoft Corp. Proprietary and Confidential
(C)opyright 2003 AromaSoft Corp. All right reserved.
Contact : contact@aromasoft.com