콘텐츠로 이동

Class OutputStream

package java.io

java.lang.Object
|
+--java.io.OutputStream

Direct Known Subclasses:

  • ByteArrayOutputStream, DataOutputStream, PrintStream

extends Object:

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

  • OutputStream () 새로운 객체를 생성한다.
  • void close () — 출력 스트림을 닫는다.
  • void flush () — 중간 버퍼에 남아있는 정보들을 실제 출력한다.
  • void write (byte[] buf) — 바이트 배열을 출력한다.
  • void write (byte[] buf, int offset, int len) — 바이트 배열의 일부분을 출력한다.
  • abstract  void write (int b) — 매개변수로 받은 변수 값 중 상위 24비트는 버리고 나머지 8비트만 출력한다.
public OutputStream()
  • 새로운 객체를 생성한다.
public void flush()
throws IOException

Throws:

  • IOException -
public void close()
throws IOException

Throws:

  • IOException -
public abstract void write(int b)
throws IOException

Parameters:

  • b - 출력할 정보.

Throws:

  • IOException -
public void write(byte[] buf)
throws IOException

Parameters:

  • buf - 출력할 바이트 배열.

Throws:

  • IOException -
public void write(byte[] buf,
int offset,
int len)
throws IOException

Parameters:

  • len - 출력할 갯수.

Throws:

  • IOException -## 메서드 상세
public void flush()
throws IOException

Throws:

  • IOException -
public void close()
throws IOException

Throws:

  • IOException -
public abstract void write(int b)
throws IOException

Parameters:

  • b - 출력할 정보.

Throws:

  • IOException -
public void write(byte[] buf)
throws IOException

Parameters:

  • buf - 출력할 바이트 배열.

Throws:

  • IOException -
public void write(byte[] buf,
int offset,
int len)
throws IOException

Parameters:

  • len - 출력할 갯수.

Throws:

  • IOException -

AromaSoft Corp. Proprietary and Confidential

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