|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.OutputStream | +--java.io.DataOutputStream
자바에서 지원하는 타입 객체를 바이트 스트림으로 변환해 출력할 수 있도록 만든 출력 스트림 클래스.
Field Summary | |
protected OutputStream |
out
실제 출력할 출력스트림. |
protected int |
written
out로 출력한 바이트 갯수. |
Constructor Summary | |
DataOutputStream(OutputStream out)
새로운 객체를 만든다. |
Method Summary | |
void |
close()
출력 스트림을 닫는다. |
void |
flush()
중간 버퍼에 남아있는 정보들을 실제 출력하도록 한다. |
void |
write(byte[] buf,
int offset,
int len)
바이트 배열의 일부분을 출력한다. |
void |
write(int b)
매개변수로 받은 변수 값 중 상위 24비트는 버리고 나머지 8비트만 출력한다. |
void |
writeBoolean(boolean b)
매개변수 값이 true이면 1 false이면 0을 출력한다. |
void |
writeByte(int b)
매개변수로 받은 변수 값 중 상위 24비트는 버리고 나머지 8비트만 출력한다. |
void |
writeChar(int c)
매개변수로 받은 변수 값 중 상위 16비트는 버리고 8~15비트까지 출력하고 이어 하위 8비트를 출력한다. |
void |
writeChars(String s)
문자열을 구성하는 문자들을 인덱스 0 부터 차례대로 출력한다. |
void |
writeDouble(double v)
|
void |
writeFloat(float v)
|
void |
writeInt(int i)
매개변수로 받은 변수 값 중 상위 8비트부터 차례대로 8비트 단위로 출력한다. |
void |
writeLong(long l)
매개변수로 받은 변수 값 중 상위 8비트부터 차례대로 8비트 단위로 출력한다. |
void |
writeShort(int s)
매개변수로 받은 변수 값 중 상위 16비트는 버리고 8~15비트까지 출력하고 이어 하위 8비트를 출력한다. |
void |
writeUTF(String s)
문자열을 UTF형식으로 바꿔 출력한다. |
Methods inherited from class java.io.OutputStream |
write |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.io.DataOutput |
write |
Field Detail |
protected int written
protected OutputStream out
Constructor Detail |
public DataOutputStream(OutputStream out)
out
- 실제 바이트 정보가 출력될 출력 스트림.Method Detail |
public void write(int b) throws IOException
write
in interface DataOutput
write
in class OutputStream
b
- 출력할 정보.IOException
- public void write(byte[] buf, int offset, int len) throws IOException
write
in interface DataOutput
write
in class OutputStream
b
- 출력할 바이트 배열.off
- b에서 출력을 시작할 위치.len
- 출력할 갯수.IOException
- public void flush() throws IOException
flush
in class OutputStream
java.io.OutputStream
IOException
- public void close() throws IOException
close
in class OutputStream
IOException
- public final void writeBoolean(boolean b) throws IOException
writeBoolean
in interface DataOutput
b
- 출력할 boolean변수.IOException
- public final void writeByte(int b) throws IOException
writeByte
in interface DataOutput
b
- 출력할 정보.IOException
- public final void writeShort(int s) throws IOException
writeShort
in interface DataOutput
s
- 출력할 정보.IOException
- public final void writeChar(int c) throws IOException
writeChar
in interface DataOutput
c
- 출력할 정보.IOException
- public final void writeInt(int i) throws IOException
writeInt
in interface DataOutput
i
- 출력할 정보.IOException
- public final void writeLong(long l) throws IOException
writeLong
in interface DataOutput
l
- 출력할 정보.IOException
- public final void writeFloat(float v) throws IOException
writeFloat
in interface DataOutput
public final void writeDouble(double v) throws IOException
writeDouble
in interface DataOutput
public final void writeChars(String s) throws IOException
writeChars
in interface DataOutput
s
- 출력할 문자열.IOException
- public final void writeUTF(String s) throws IOException
writeUTF
in interface DataOutput
str
- 출력할 문자열.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