java.io
Class BufferedWriter

java.lang.Object
  extended by java.io.Writer
      extended by java.io.BufferedWriter

public class BufferedWriter
extends Writer

NOTE: Text writing is not synchronized either like standard Java.

Author:
Sven Köhler

Constructor Summary
BufferedWriter(OutputStream os)
          Deprecated. use OutputStreamWriter instead.
BufferedWriter(Writer out)
          In the standard Java API the constructor accepts a Writer object, such as OutputStreamWriter.
BufferedWriter(Writer out, int size)
           
 
Method Summary
 Writer append(CharSequence str, int start, int end)
           
 void close()
           
 void flush()
           
 void newLine()
           
 void write(char[] c, int off, int len)
           
 void write(int c)
           
 void write(String str, int off, int len)
           
 
Methods inherited from class java.io.Writer
append, append, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BufferedWriter

@Deprecated
public BufferedWriter(OutputStream os)
Deprecated. use OutputStreamWriter instead.


BufferedWriter

public BufferedWriter(Writer out)
In the standard Java API the constructor accepts a Writer object, such as OutputStreamWriter.

Parameters:
out -

BufferedWriter

public BufferedWriter(Writer out,
                      int size)
Method Detail

close

public void close()
           throws IOException
Specified by:
close in class Writer
Throws:
IOException

flush

public void flush()
           throws IOException
Specified by:
flush in class Writer
Throws:
IOException

newLine

public void newLine()
             throws IOException
Throws:
IOException

append

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

write

public void write(char[] c,
                  int off,
                  int len)
           throws IOException
Specified by:
write in class Writer
Throws:
IOException

write

public void write(int c)
           throws IOException
Overrides:
write in class Writer
Throws:
IOException

write

public void write(String str,
                  int off,
                  int len)
           throws IOException
Overrides:
write in class Writer
Throws:
IOException