net.sf.fikin.ant.types
Class DelimitedPrintWriter

java.lang.Object
  extended by java.io.Writer
      extended by java.io.PrintWriter
          extended by net.sf.fikin.ant.types.DelimitedPrintWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable

public class DelimitedPrintWriter
extends java.io.PrintWriter

Provides with delimiter interface if the underlying writer of is of type DelimitedBufferedWriter.

created on Jan 6, 2007

Since:
Version:
$Revision: 1.2 $
Author:
fiykov

Field Summary
 
Fields inherited from class java.io.PrintWriter
out
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
DelimitedPrintWriter(java.io.File file)
           
DelimitedPrintWriter(java.io.File file, java.lang.String csn)
           
DelimitedPrintWriter(java.io.OutputStream out)
           
DelimitedPrintWriter(java.io.OutputStream out, boolean autoFlush)
           
DelimitedPrintWriter(java.lang.String fileName)
           
DelimitedPrintWriter(java.lang.String fileName, java.lang.String csn)
           
DelimitedPrintWriter(java.io.Writer out)
           
DelimitedPrintWriter(java.io.Writer out, boolean autoFlush)
           
 
Method Summary
 java.lang.String getDelimiter()
          get assigned delimiter if assigned writer object if of instance DelimitedBufferedWriter
 
Methods inherited from class java.io.PrintWriter
append, append, append, checkError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelimitedPrintWriter

public DelimitedPrintWriter(java.io.Writer out)

DelimitedPrintWriter

public DelimitedPrintWriter(java.io.Writer out,
                            boolean autoFlush)

DelimitedPrintWriter

public DelimitedPrintWriter(java.io.OutputStream out)

DelimitedPrintWriter

public DelimitedPrintWriter(java.io.OutputStream out,
                            boolean autoFlush)

DelimitedPrintWriter

public DelimitedPrintWriter(java.lang.String fileName)
                     throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException

DelimitedPrintWriter

public DelimitedPrintWriter(java.lang.String fileName,
                            java.lang.String csn)
                     throws java.io.FileNotFoundException,
                            java.io.UnsupportedEncodingException
Throws:
java.io.FileNotFoundException
java.io.UnsupportedEncodingException

DelimitedPrintWriter

public DelimitedPrintWriter(java.io.File file)
                     throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException

DelimitedPrintWriter

public DelimitedPrintWriter(java.io.File file,
                            java.lang.String csn)
                     throws java.io.FileNotFoundException,
                            java.io.UnsupportedEncodingException
Throws:
java.io.FileNotFoundException
java.io.UnsupportedEncodingException
Method Detail

getDelimiter

public java.lang.String getDelimiter()
get assigned delimiter if assigned writer object if of instance DelimitedBufferedWriter

Returns:
DelimitedBufferedWriter.getDelimiter() or null if assigned writer object is not of such class instance


Copyright © 2003-2007 Nikolay Fiykov. All Rights Reserved.