java.io
Class Writer

java.lang.Object
  |
  +--java.io.Writer
Direct Known Subclasses:
OutputStreamWriter

public abstract class Writer
extends Object

Unicode로 된 내부 문자열을 KSC5601과 같은 형식의 문자열로 변환하여 출력하는 출력 스트림의 추상클래스


Field Summary
protected  Object lock
           
 
Constructor Summary
protected Writer()
          출력스트림을 생성한다.
protected Writer(Object lock)
          출력스트림을 생성한다.
 
Method Summary
abstract  void close()
          출력스트림을 닫는다.
abstract  void flush()
          중간 버퍼에 남아있는 값을 실제로 출력한다.
 void write(char[] buf)
          문자배열을 출력한다.
abstract  void write(char[] buf, int offset, int len)
          문자배열을 출력한다.
 void write(int b)
          한문자를 출력한다.
 void write(String str)
          문자열을 출력한다.
 void write(String str, int offset, int len)
          문자열을 출력한다.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lock

protected Object lock
Constructor Detail

Writer

protected Writer()
출력스트림을 생성한다. 동기화를 위한 lock은 자기자신을 사용한다.

Writer

protected Writer(Object lock)
출력스트림을 생성한다. 동기화를 위한 lock은 매개변수로 받은 객체를 사용한다.
Method Detail

close

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

flush

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

write

public abstract void write(char[] buf,
                           int offset,
                           int len)
                    throws IOException
문자배열을 출력한다.
Parameters:
buf - 출력할 문자배열.
offset - buf중 출력 시작 위치.
len - 출력할 문자 갯수.
Throws:
IOException -  

write

public void write(char[] buf)
           throws IOException
문자배열을 출력한다.
Parameters:
buf - 출력할 문자배열.
Throws:
IOException -  

write

public void write(int b)
           throws IOException
한문자를 출력한다.
Parameters:
b - 출력할 문자.
Throws:
IOException -  

write

public void write(String str)
           throws IOException
문자열을 출력한다.
Parameters:
str - 출력할 문자열.
Throws:
IOException -  

write

public void write(String str,
                  int offset,
                  int len)
           throws IOException
문자열을 출력한다.
Parameters:
str - 출력할 문자열.
offset - str중 출력시작 위치.
len - 출력할 문자 갯수.
Throws:
IOException -  


AromaSoft Corp. Proprietary and Confidential

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