public class PseudoFileWriter extends OutputStreamWriter
Constructor and Description |
---|
PseudoFileWriter(PseudoFile file)
Constructs a FileWriter object given a File object.
|
PseudoFileWriter(PseudoFile file,
boolean append)
Constructs a FileWriter object given a File object.
|
PseudoFileWriter(String fileName)
Constructs a FileWriter object given a file name.
|
PseudoFileWriter(String fileName,
boolean append)
Constructs a FileWriter object given a file name with a boolean
indicating whether or not to append the data written.
|
close, flush, getEncoding, write, write, write
public PseudoFileWriter(String fileName) throws IOException
fileName
- String The system-dependent filename.IOException
- if the named file exists but is a directory rather
than a regular file, does not exist but cannot be
created, or cannot be opened for any other reasonpublic PseudoFileWriter(String fileName, boolean append) throws IOException
fileName
- String The system-dependent filename.append
- boolean if true
, then data will be written
to the end of the file rather than the beginning.IOException
- if the named file exists but is a directory rather
than a regular file, does not exist but cannot be
created, or cannot be opened for any other reasonpublic PseudoFileWriter(PseudoFile file) throws IOException
file
- a File object to write to.IOException
- if the file exists but is a directory rather than
a regular file, does not exist but cannot be created,
or cannot be opened for any other reasonpublic PseudoFileWriter(PseudoFile file, boolean append) throws IOException
true
, then bytes will be written to the end
of the file rather than the beginning.file
- a File object to write toappend
- if true
, then bytes will be written
to the end of the file rather than the beginningIOException
- if the file exists but is a directory rather than
a regular file, does not exist but cannot be created,
or cannot be opened for any other reasonCopyright © 2012-2013. All Rights Reserved.