woolpack.utils
クラス AppendableWriter
java.lang.Object
java.io.Writer
woolpack.utils.AppendableWriter
- すべての実装されたインタフェース:
- java.io.Closeable, java.io.Flushable, java.lang.Appendable
public class AppendableWriter
- extends java.io.Writer
WriterからAppendableへのアダプタです。
Writerのみを引数として持つ機能に対してAppendableを作用させる際に使用します。
適用しているデザインパターン:Adapter。
- 作成者:
- nakamura
| クラス java.io.Writer から継承されたフィールド |
lock |
|
メソッドの概要 |
java.io.Writer |
append(char c)
|
java.io.Writer |
append(java.lang.CharSequence csq)
|
java.io.Writer |
append(java.lang.CharSequence csq,
int start,
int end)
|
void |
close()
|
void |
flush()
|
java.lang.Appendable |
getAppendable()
|
void |
setAppendable(java.lang.Appendable appendable)
|
void |
write(char[] cbuf,
int off,
int len)
|
void |
write(int c)
|
void |
write(java.lang.String str)
|
void |
write(java.lang.String str,
int off,
int len)
|
| クラス java.io.Writer から継承されたメソッド |
write |
| クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AppendableWriter
public AppendableWriter(java.lang.Appendable appendable)
append
public java.io.Writer append(java.lang.CharSequence csq)
throws java.io.IOException
- 定義:
- インタフェース
java.lang.Appendable 内の append - オーバーライド:
- クラス
java.io.Writer 内の append
- 例外:
java.io.IOException
append
public java.io.Writer append(java.lang.CharSequence csq,
int start,
int end)
throws java.io.IOException
- 定義:
- インタフェース
java.lang.Appendable 内の append - オーバーライド:
- クラス
java.io.Writer 内の append
- 例外:
java.io.IOException
append
public java.io.Writer append(char c)
throws java.io.IOException
- 定義:
- インタフェース
java.lang.Appendable 内の append - オーバーライド:
- クラス
java.io.Writer 内の append
- 例外:
java.io.IOException
write
public void write(char[] cbuf,
int off,
int len)
throws java.io.IOException
- 定義:
- クラス
java.io.Writer 内の write
- 例外:
java.io.IOException
write
public void write(int c)
throws java.io.IOException
- オーバーライド:
- クラス
java.io.Writer 内の write
- 例外:
java.io.IOException
write
public void write(java.lang.String str)
throws java.io.IOException
- オーバーライド:
- クラス
java.io.Writer 内の write
- 例外:
java.io.IOException
write
public void write(java.lang.String str,
int off,
int len)
throws java.io.IOException
- オーバーライド:
- クラス
java.io.Writer 内の write
- 例外:
java.io.IOException
flush
public void flush()
throws java.io.IOException
- 定義:
- インタフェース
java.io.Flushable 内の flush - 定義:
- クラス
java.io.Writer 内の flush
- 例外:
java.io.IOException
close
public void close()
throws java.io.IOException
- 定義:
- インタフェース
java.io.Closeable 内の close - 定義:
- クラス
java.io.Writer 内の close
- 例外:
java.io.IOException
getAppendable
public java.lang.Appendable getAppendable()
setAppendable
public void setAppendable(java.lang.Appendable appendable)
Copyright (C) 2006-2007 Takahiro Nakamura. All rights reserved.