|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
java.io.PrintStream
cdx.scorebot.util.io.PrintFileStream
public class PrintFileStream
Provide an easy means of tracking what file a print stream is printing to (if any)
PrintStream| Field Summary |
|---|
| Fields inherited from class java.io.FilterOutputStream |
|---|
out |
| Constructor Summary | |
|---|---|
PrintFileStream(java.io.PrintStream ps,
java.lang.String filename)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Returns true if the specified object is equal |
java.lang.String |
getFilename()
gets the filename associated with this PrintStream |
java.io.PrintStream |
getPrintStream()
returns the code>PrintStream this is printing to |
| Methods inherited from class java.io.PrintStream |
|---|
append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError, write, write |
| Methods inherited from class java.io.FilterOutputStream |
|---|
write |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PrintFileStream(java.io.PrintStream ps,
java.lang.String filename)
ps - the PrintStream to print tofilename - the name of the file associated with this PrintStream, or null if none| Method Detail |
|---|
public java.lang.String getFilename()
PrintStream
Stringpublic java.io.PrintStream getPrintStream()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - if obj is a PrintStream then this returns true if it is the same one this was
created with, otherwise this returns true if obj is this object; otherwise false
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||