Writers

We classify writers by:
  1. the sink passed to their constructor
  2. the special methods they add
The abstract superclass of all writers is:
Writer
+ write(int)
+ write(String)
+ flush()
+ close()
Subclasses of Writer include:
OutputStreamWriter
+ ctor( OutputStream )
+ ctor( OutputStream, String encoding )
+ getEncoding() : String
FileWriter
+ ctor( File )
+ ctor( String )
StringWriter
+ ctor()
+ getBuffer() : StringBuffer
+ toString() : String
CharArrayWriter
+ ctor()
+ toCharArray() : char[]
+ toString() : String
Filter writers take other writers as their sink:
BufferedWriter
+ ctor(Writer)
PrintWriter
+ ctor(OutputStream)
+ ctor(Writer)
+ print(Object or primitive)
+ println(Object or primitive)
PipedWriter
+ ctor(PipedReader)
+ connect(PipedReader)
The abstract class FilterWriter has no subclasses, but you can write your own:
FilterWriter
# out : Writer
# ctor(Writer)