uvascript
Class TextWriter

java.lang.Object
  extended byjava.io.Writer
      extended byjava.io.PrintWriter
          extended byuvascript.TextWriter

public class TextWriter
extends java.io.PrintWriter

Text file writer.

This class inherits a number of the print() and println() methods. Use an instance of this class as the system.out object.


Field Summary
static char[] CRLF
           
static char[] LF
           
 char[] lineDelimiter
           
 
Constructor Summary
TextWriter(java.io.File f)
          Constructs a TextWriter object.
 
Method Summary
 void close()
          Closes the stream.
 void print(java.lang.String s)
          Writes a text string.
 void println()
          Terminates the current line with the line delimiter specified by lineDelimiter.
 void println(java.lang.String s)
          Writes a text string and terminates the current line with the line delimiter specified by lineDelimiter.
 
Methods inherited from class java.io.PrintWriter
checkError, flush, print, print, print, print, print, print, print, print, println, println, println, println, println, println, println, println, write, write, write, write, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CRLF

public static final char[] CRLF

LF

public static final char[] LF

lineDelimiter

public char[] lineDelimiter
Constructor Detail

TextWriter

public TextWriter(java.io.File f)
           throws java.io.IOException
Constructs a TextWriter object.

Method Detail

close

public void close()
Closes the stream.


print

public void print(java.lang.String s)
Writes a text string.


println

public void println(java.lang.String s)
Writes a text string and terminates the current line with the line delimiter specified by lineDelimiter.


println

public void println()
Terminates the current line with the line delimiter specified by lineDelimiter.



UvaScript. Copyright (C) 2004 Shigeru Chiba. All Rights Reserved.