ewe.io
Class FileOutputStream

java.lang.Object
  extended byewe.io.OutputStream
      extended byewe.io.FileOutputStream
All Implemented Interfaces:
Streamable

public class FileOutputStream
extends OutputStream

This is a write only output stream to a file.


Field Summary
 
Fields inherited from class ewe.io.OutputStream
closed, out, rs, stream
 
Constructor Summary
FileOutputStream(File file)
          Create the FileOutputStream and overwrite any existing file.
FileOutputStream(File file, boolean append)
          Create the FileOutputStream with the option to append to an existing file.
FileOutputStream(String name)
          Create the FileOutputStream and overwrite any existing file.
FileOutputStream(String name, boolean append)
          Create the FileOutputStream and overwrite any existing file.
 
Methods inherited from class ewe.io.OutputStream
close, flush, getFastStream, getName, shutdown, toStream, toWritableStream, write, write, write, writeSingleByteToMultiByteWrite
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, toString
 

Constructor Detail

FileOutputStream

public FileOutputStream(File file)
                 throws IOException
Create the FileOutputStream and overwrite any existing file.

Parameters:
file - The file to open.
Throws:
IOException - if the file could not be created or written to.

FileOutputStream

public FileOutputStream(File file,
                        boolean append)
                 throws IOException
Create the FileOutputStream with the option to append to an existing file.

Parameters:
file - The file to open/append.
append - specifies if the file should be appended.
Throws:
IOException - if the file could not be created or written to.

FileOutputStream

public FileOutputStream(String name,
                        boolean append)
                 throws IOException
Create the FileOutputStream and overwrite any existing file.

Parameters:
name - the name of the file.
append - specifies if the file should be appended.
Throws:
IOException - if the file could not be created or written to.

FileOutputStream

public FileOutputStream(String name)
                 throws IOException
Create the FileOutputStream and overwrite any existing file.

Parameters:
name - the name of the file.
Throws:
IOException - if the file could not be created or written to.