|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectjava.io.OutputStream
java.io.FileOutputStream
patterntesting.runtime.io.BetterFileOutputStream
public final class BetterFileOutputStream
Whenever you need a FileOutputStream and want a better toString
implementation you can use the class BetterFileOutputStream. "Better" means
that you see the name if the input file in the log which is much more helpful
than the default implementation of Object.toString(), especially for
logging and debugging.
FileOutputStream| Constructor Summary | |
|---|---|
BetterFileOutputStream(File file)
Instantiates a new better file output stream. |
|
BetterFileOutputStream(File file,
boolean append)
Instantiates a new better file output stream. |
|
BetterFileOutputStream(String name)
Instantiates a new better file output stream. |
|
BetterFileOutputStream(String name,
boolean append)
Instantiates a new better file output stream. |
|
| Method Summary | |
|---|---|
String |
toString()
This toString implementation reports the name of the output file which is much more helpful than the default implementation of Object.toString(), especially for logging and debugging. |
| Methods inherited from class java.io.FileOutputStream |
|---|
close, finalize, getChannel, getFD, write, write, write |
| Methods inherited from class java.io.OutputStream |
|---|
flush |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BetterFileOutputStream(String name)
throws FileNotFoundException
name - the file name
FileNotFoundException - the file not found exceptionFileOutputStream.FileOutputStream(String)
public BetterFileOutputStream(File file)
throws FileNotFoundException
file - the file
FileNotFoundException - the file not found exceptionFileOutputStream.FileOutputStream(File)
public BetterFileOutputStream(String name,
boolean append)
throws FileNotFoundException
name - the file nameappend - if it should be appended
FileNotFoundException - the file not found exceptionFileOutputStream.FileOutputStream(String,boolean)
public BetterFileOutputStream(File file,
boolean append)
throws FileNotFoundException
file - the fileappend - if it should be appended
FileNotFoundException - the file not found exceptionFileOutputStream.FileOutputStream(File,boolean)| Method Detail |
|---|
public String toString()
Object.toString(), especially for logging and debugging.
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||