콘텐츠로 이동

Class PrintStream

package java.io

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

extends OutputStream:

다른 출력스트림에 새로운 라인 값을 덧붙여 출력하기 등 값 출력에 대한 여러 부가적인 기능을 덧붙이는 출력스트림이다.

  • PrintStream ( OutputStream out) 새로운 출력스트림을 생성함니다.
  • boolean checkError () — 출력 스트림이 오류상태 인지 여부를 구한다.
  • void close () — 출력스트림을 닫는다.
  • void flush () — 출력된 정보 중 중간 버퍼에 남아있는 내용을 모두 실제로 출력한다.
  • void print (boolean b) — boolean형 값을 출력한다.
  • void print (char c) — 한 문자를 출력한다.
  • void print (char[] s) — 문자배열을 출력한다.
  • void print (int i) — 정수값을 출력한다.
  • void print (long l) — long값을 출력한다.
  • void print ( Object obj) — 특정 객체에 대한 정보를 출력한다.
  • void print ( String s) — 문자열을 출력한다.
  • void println () — 새로운 라인 문자를 출력한다.
  • void println (boolean x) — boolean형 값을 출력한다.이어서 새로운 라인 문자를 출력한다.
  • void println (char x) — 한 문자를 출력한다.이어서 새로운 라인 문자를 출력한다.
  • void println (char[] x) — 문자배열을 출력한다.이어서 새로운 라인 문자를 출력한다.
  • void println (int x) — 정수값을 출력한다.이어서 새로운 라인 문자를 출력한다.
  • void println (long x) — long값을 출력한다.이어서 새로운 라인 문자를 출력한다.
  • void println ( Object x) — 특정 객체에 대한 정보를 출력한다.이어서 새로운 라인 문자를 출력한다.
  • void println ( String x) — 문자열을 출력한다.이어서 새로운 라인 문자를 출력한다.
  • protected  void setError () — 출력스트림이 오류상태임을 설정한다.
  • void write (byte[] buf, int off, int len) — 바이트배열을 출력한다.
  • void write (int b) — 특정 바이트를 출력한다.
public PrintStream(OutputStream out)

Parameters:

  • out - 실제 출력할 출력스트림.
public void flush()

Overrides:

  • flush in class OutputStream
  • Following copied from class: java.io.OutputStream

Throws:

  • IOException -
public void close()

Overrides:

  • close in class OutputStream
  • Following copied from class: java.io.OutputStream

Throws:

  • IOException -
public boolean checkError()

Returns:

  • 오류상태이면 true 아니면 false
protected void setError()
  • 출력스트림이 오류상태임을 설정한다.
public void write(int b)

Overrides:

  • write in class OutputStream

Parameters:

  • b - 출력할 정수값.
public void write(byte[] buf,
int off,
int len)

Overrides:

  • write in class OutputStream

Parameters:

  • len - 출력할 바이트 갯수.
public void print(boolean b)

Parameters:

  • b - 출력할 boolean형 변수.
public void print(char c)

Parameters:

  • c - 출력할 문자.
public void print(int i)

Parameters:

  • i - 출력할 정수값.
public void print(long l)

Parameters:

  • l - 출력할 long값.
public void print(char[] s)

Parameters:

  • s - 출력할 문자배열.
public void print(String s)

Parameters:

  • s - 출력할 문자열.
public void print(Object obj)

Parameters:

  • obj - 출력할 객체.
public void println()
  • 새로운 라인 문자를 출력한다.
public void println(boolean x)

Parameters:

  • x - 출력할 boolean형 변수.
public void println(char x)

Parameters:

  • x - 출력할 문자.
public void println(int x)

Parameters:

  • x - 출력할 정수값.
public void println(long x)

Parameters:

  • x - 출력할 long값.
public void println(char[] x)

Parameters:

  • x - 출력할 문자배열.
public void println(String x)

Parameters:

  • x - 출력할 문자열.
public void println(Object x)

Parameters:

  • x - 출력할 객체.## 메서드 상세
public void flush()

Overrides:

  • flush in class OutputStream
  • Following copied from class: java.io.OutputStream

Throws:

  • IOException -
public void close()

Overrides:

  • close in class OutputStream
  • Following copied from class: java.io.OutputStream

Throws:

  • IOException -
public boolean checkError()

Returns:

  • 오류상태이면 true 아니면 false
protected void setError()
  • 출력스트림이 오류상태임을 설정한다.
public void write(int b)

Overrides:

  • write in class OutputStream

Parameters:

  • b - 출력할 정수값.
public void write(byte[] buf,
int off,
int len)

Overrides:

  • write in class OutputStream

Parameters:

  • len - 출력할 바이트 갯수.
public void print(boolean b)

Parameters:

  • b - 출력할 boolean형 변수.
public void print(char c)

Parameters:

  • c - 출력할 문자.
public void print(int i)

Parameters:

  • i - 출력할 정수값.
public void print(long l)

Parameters:

  • l - 출력할 long값.
public void print(char[] s)

Parameters:

  • s - 출력할 문자배열.
public void print(String s)

Parameters:

  • s - 출력할 문자열.
public void print(Object obj)

Parameters:

  • obj - 출력할 객체.
public void println()
  • 새로운 라인 문자를 출력한다.
public void println(boolean x)

Parameters:

  • x - 출력할 boolean형 변수.
public void println(char x)

Parameters:

  • x - 출력할 문자.
public void println(int x)

Parameters:

  • x - 출력할 정수값.
public void println(long x)

Parameters:

  • x - 출력할 long값.
public void println(char[] x)

Parameters:

  • x - 출력할 문자배열.
public void println(String x)

Parameters:

  • x - 출력할 문자열.
public void println(Object x)

Parameters:

  • x - 출력할 객체.

AromaSoft Corp. Proprietary and Confidential

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