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
 
コンストラクタの概要
AppendableWriter(java.lang.Appendable appendable)
          コンストラクタ。
 
メソッドの概要
 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()
           
 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)
コンストラクタ。

パラメータ:
appendable - 委譲先。
例外:
java.lang.NullPointerException - 引数が null の場合。
メソッドの詳細

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


Copyright (C) 2006 Takahiro Nakamura. All rights reserved.