public class UnicodeWriter extends Writer
コンストラクタと説明 |
---|
UnicodeWriter(OutputStream out,
String encoding)
与えられた文字セットを使う UnicodeWriter を作成します。
|
UnicodeWriter(OutputStream out,
String encoding,
boolean writeUTF8Bom)
与えられた文字セットを使う UnicodeWriter を作成します。
|
修飾子とタイプ | メソッドと説明 |
---|---|
void |
close() |
void |
flush() |
String |
getEncoding()
このストリームで使用される文字エンコーディングの名前を返します。
|
void |
write(char[] cbuf,
int off,
int len) |
void |
write(int c) |
void |
write(String str,
int off,
int len) |
public UnicodeWriter(OutputStream out, String encoding) throws IOException
UnicodeWriter(OutputStream, String, boolean)
を利用してください。out
- 出力ストリームencoding
- エンコーディングIOException
- 入出力エラーが発生した場合にスローされます。public UnicodeWriter(OutputStream out, String encoding, boolean writeUTF8Bom) throws IOException
out
- 出力ストリームencoding
- エンコーディングwriteUTF8Bom
- BOM付きUTF-8で出力を行う場合にtrueを指定します。IOException
- 入出力エラーが発生した場合にスローされます。public void close() throws IOException
close
インタフェース内 Closeable
close
インタフェース内 AutoCloseable
close
クラス内 Writer
IOException
public void flush() throws IOException
flush
インタフェース内 Flushable
flush
クラス内 Writer
IOException
public String getEncoding()
public void write(char[] cbuf, int off, int len) throws IOException
write
クラス内 Writer
IOException
public void write(int c) throws IOException
write
クラス内 Writer
IOException
public void write(String str, int off, int len) throws IOException
write
クラス内 Writer
IOException
Copyright © 2012 NTT DATA INTRAMART CORPORATION