java.io
Class BufferedWriter

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

public class BufferedWriter
extends Object

This is a minimal implementation of BufferedWriter. Normally BufferedWriter extends the abstract class Writer. The main reason for NXJ including this is to allow the new-line character in text. NOTE: Text writing is not synchronized either like standard Java.

Author:
BB

Constructor Summary
BufferedWriter(OutputStream out)
          In the standard Java API the constructor accepts a Writer object, such as OutputStreamWriter.
 
Method Summary
 void flush()
           
 void newLine()
          Writes char(13) to the destination.
 void write(String s)
          Currently does not translate ASCII escape sequences like \n into the appropriate character.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BufferedWriter

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

Parameters:
out -
Method Detail

write

public void write(String s)
           throws IOException
Currently does not translate ASCII escape sequences like \n into the appropriate character.

Parameters:
s -
Throws:
IOException

newLine

public void newLine()
             throws IOException
Writes char(13) to the destination.

Throws:
IOException

flush

public void flush()
           throws IOException
Throws:
IOException