java.io
Class Writer

java.lang.Object
  extended by java.io.Writer
Direct Known Subclasses:
BufferedWriter, LejosOutputStreamWriter, StringWriter

public abstract class Writer
extends Object

Basic Writer implementation. In contrast to the JDK, this class is NOT synchronized.

Author:
Sven Köhler

Constructor Summary
protected Writer()
           
 
Method Summary
 Writer append(char c)
           
 Writer append(CharSequence str)
           
 Writer append(CharSequence str, int start, int end)
           
abstract  void close()
           
abstract  void flush()
           
 void write(char[] c)
           
abstract  void write(char[] c, int off, int len)
           
 void write(int c)
           
 void write(String str)
           
 void write(String str, int off, int len)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Writer

protected Writer()
Method Detail

append

public Writer append(char c)
              throws IOException
Throws:
IOException

append

public Writer append(CharSequence str)
              throws IOException
Throws:
IOException

append

public Writer append(CharSequence str,
                     int start,
                     int end)
              throws IOException
Throws:
IOException

close

public abstract void close()
                    throws IOException
Throws:
IOException

flush

public abstract void flush()
                    throws IOException
Throws:
IOException

write

public void write(char[] c)
           throws IOException
Throws:
IOException

write

public abstract void write(char[] c,
                           int off,
                           int len)
                    throws IOException
Throws:
IOException

write

public void write(int c)
           throws IOException
Throws:
IOException

write

public void write(String str)
           throws IOException
Throws:
IOException

write

public void write(String str,
                  int off,
                  int len)
           throws IOException
Throws:
IOException