com.evanmclean.evlib.io
Class CSFileWriter

java.lang.Object
  extended by java.io.Writer
      extended by java.io.OutputStreamWriter
          extended by com.evanmclean.evlib.io.CSFileWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable
Direct Known Subclasses:
UTF8FileWriter

public class CSFileWriter
extends OutputStreamWriter

Create a file writer which writes the file with the specified character set.

Author:
Evan McLean McLean Computer Services (see the overview for copyright and licensing.)

Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
CSFileWriter(File file, boolean append, Charset cs)
           
CSFileWriter(File file, boolean append, CharsetEncoder enc)
           
CSFileWriter(File file, boolean append, String charset_name)
           
CSFileWriter(File file, Charset cs)
           
CSFileWriter(File file, CharsetEncoder enc)
           
CSFileWriter(FileDescriptor fd, Charset cs)
           
CSFileWriter(FileDescriptor fd, CharsetEncoder enc)
           
CSFileWriter(FileDescriptor fd, String charset_name)
           
CSFileWriter(File file, String charset_name)
           
CSFileWriter(String name, boolean append, Charset cs)
           
CSFileWriter(String name, boolean append, CharsetEncoder enc)
           
CSFileWriter(String name, boolean append, String charset_name)
           
CSFileWriter(String name, Charset cs)
           
CSFileWriter(String name, CharsetEncoder enc)
           
CSFileWriter(String name, String charset_name)
           
 
Method Summary
 
Methods inherited from class java.io.OutputStreamWriter
close, flush, getEncoding, write, write, write
 
Methods inherited from class java.io.Writer
append, append, append, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSFileWriter

public CSFileWriter(File file,
                    boolean append,
                    Charset cs)
             throws FileNotFoundException
Throws:
FileNotFoundException

CSFileWriter

public CSFileWriter(File file,
                    boolean append,
                    CharsetEncoder enc)
             throws FileNotFoundException
Throws:
FileNotFoundException

CSFileWriter

public CSFileWriter(File file,
                    boolean append,
                    String charset_name)
             throws FileNotFoundException,
                    UnsupportedEncodingException
Throws:
FileNotFoundException
UnsupportedEncodingException

CSFileWriter

public CSFileWriter(File file,
                    Charset cs)
             throws FileNotFoundException
Throws:
FileNotFoundException

CSFileWriter

public CSFileWriter(File file,
                    CharsetEncoder enc)
             throws FileNotFoundException
Throws:
FileNotFoundException

CSFileWriter

public CSFileWriter(File file,
                    String charset_name)
             throws FileNotFoundException,
                    UnsupportedEncodingException
Throws:
FileNotFoundException
UnsupportedEncodingException

CSFileWriter

public CSFileWriter(FileDescriptor fd,
                    Charset cs)

CSFileWriter

public CSFileWriter(FileDescriptor fd,
                    CharsetEncoder enc)

CSFileWriter

public CSFileWriter(FileDescriptor fd,
                    String charset_name)
             throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

CSFileWriter

public CSFileWriter(String name,
                    boolean append,
                    Charset cs)
             throws FileNotFoundException
Throws:
FileNotFoundException

CSFileWriter

public CSFileWriter(String name,
                    boolean append,
                    CharsetEncoder enc)
             throws FileNotFoundException
Throws:
FileNotFoundException

CSFileWriter

public CSFileWriter(String name,
                    boolean append,
                    String charset_name)
             throws FileNotFoundException,
                    UnsupportedEncodingException
Throws:
FileNotFoundException
UnsupportedEncodingException

CSFileWriter

public CSFileWriter(String name,
                    Charset cs)
             throws FileNotFoundException
Throws:
FileNotFoundException

CSFileWriter

public CSFileWriter(String name,
                    CharsetEncoder enc)
             throws FileNotFoundException
Throws:
FileNotFoundException

CSFileWriter

public CSFileWriter(String name,
                    String charset_name)
             throws FileNotFoundException,
                    UnsupportedEncodingException
Throws:
FileNotFoundException
UnsupportedEncodingException