java.io
Class OutputStream

java.lang.Object
  |
  +--java.io.OutputStream
Direct Known Subclasses:
ByteArrayOutputStream, DataOutputStream, PrintStream

public abstract class OutputStream
extends Object

출력 스트림들이 상속받아야 할 추상 클래스.


Constructor Summary
OutputStream()
          새로운 객체를 생성한다.
 
Method Summary
 void close()
          출력 스트림을 닫는다.
 void flush()
          중간 버퍼에 남아있는 정보들을 실제 출력한다.
 void write(byte[] buf)
          바이트 배열을 출력한다.
 void write(byte[] buf, int offset, int len)
          바이트 배열의 일부분을 출력한다.
abstract  void write(int b)
          매개변수로 받은 변수 값 중 상위 24비트는 버리고 나머지 8비트만 출력한다.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputStream

public OutputStream()
새로운 객체를 생성한다.
Method Detail

flush

public void flush()
           throws IOException
중간 버퍼에 남아있는 정보들을 실제 출력한다.
Throws:
IOException -  

close

public void close()
           throws IOException
출력 스트림을 닫는다.
Throws:
IOException -  

write

public abstract void write(int b)
                    throws IOException
매개변수로 받은 변수 값 중 상위 24비트는 버리고 나머지 8비트만 출력한다.
Parameters:
b - 출력할 정보.
Throws:
IOException -  

write

public void write(byte[] buf)
           throws IOException
바이트 배열을 출력한다.
Parameters:
buf - 출력할 바이트 배열.
Throws:
IOException -  

write

public void write(byte[] buf,
                  int offset,
                  int len)
           throws IOException
바이트 배열의 일부분을 출력한다.
Parameters:
buf - 출력할 바이트 배열.
offset - b에서 출력을 시작할 위치.
len - 출력할 갯수.
Throws:
IOException -  


AromaSoft Corp. Proprietary and Confidential

(C)opyright 2003 AromaSoft Corp. All right reserved.
Contact : contact@aromasoft.com