org.plovr.io
Class Streams

java.lang.Object
  extended by org.plovr.io.Streams

public final class Streams
extends java.lang.Object


Method Summary
static java.io.Writer createFileWriter(java.io.File outputFile, Config config)
          As suggested by the FileWriter Javadoc, because we want to specify the character encoding, use this method to create a Writer for a File instead of creating a new FileWriter.
static java.io.Writer createFileWriter(java.lang.String outputFileName, Config config)
          As suggested by the FileWriter Javadoc, because we want to specify the character encoding, use this method to create a Writer for a File instead of creating a new FileWriter.
static java.io.Writer createL10nFileWriter(java.io.File outputFile)
          Special method to produce a Writer that will write localized files (i.e.
static java.io.OutputStreamWriter createOutputStreamWriter(java.io.OutputStream ostream, Config config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createOutputStreamWriter

public static java.io.OutputStreamWriter createOutputStreamWriter(java.io.OutputStream ostream,
                                                                  Config config)

createFileWriter

public static java.io.Writer createFileWriter(java.io.File outputFile,
                                              Config config)
                                       throws java.io.FileNotFoundException
As suggested by the FileWriter Javadoc, because we want to specify the character encoding, use this method to create a Writer for a File instead of creating a new FileWriter.

Parameters:
outputFile -
Throws:
java.io.FileNotFoundException

createFileWriter

public static java.io.Writer createFileWriter(java.lang.String outputFileName,
                                              Config config)
                                       throws java.io.FileNotFoundException
As suggested by the FileWriter Javadoc, because we want to specify the character encoding, use this method to create a Writer for a File instead of creating a new FileWriter.

Parameters:
outputFileName -
Throws:
java.io.FileNotFoundException

createL10nFileWriter

public static java.io.Writer createL10nFileWriter(java.io.File outputFile)
                                           throws java.io.FileNotFoundException
Special method to produce a Writer that will write localized files (i.e. handles non-Latin characters).

Throws:
java.io.FileNotFoundException