|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.io.EchoingPrintWriter
public class EchoingPrintWriter
EchoingPrintWriter echoes print output to a secondary PrintWriter. All strings printed to this stream are also printed to the secondary stream.
| Constructor Summary | |
|---|---|
EchoingPrintWriter(java.io.OutputStream primary)
Construct an EchoingPrintWriter which prints to both a primary OutputStream and to Standard.out |
|
EchoingPrintWriter(java.io.OutputStream primary,
java.io.PrintWriter secondary)
Construct an EchoingPrintWriter which prints to both a primary OutputStream and to a secondary PrintWriter. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Create a copy of the current EchoingPrintWriter |
void |
close()
Close the print streams. |
void |
close(boolean closeSecondary)
Close the print streams. |
void |
print(java.lang.String s)
Print a string to both output streams. |
void |
println(java.lang.String s)
Print a string and a newline to both output streams. |
| Constructor Detail |
|---|
public EchoingPrintWriter(java.io.OutputStream primary)
primary - an output stream to print to.
public EchoingPrintWriter(java.io.OutputStream primary,
java.io.PrintWriter secondary)
primary - an output stream to print to.secondary - a secondary PrintWriter to which output
is also printed.| Method Detail |
|---|
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface com.sas.PublicClonableclone in class java.lang.Objectjava.lang.CloneNotSupportedException - if the
object cannot be cloned.public void print(java.lang.String s)
print in class java.io.PrintWriters - a string value.public void println(java.lang.String s)
println in class java.io.PrintWriters - a string value.public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.PrintWriterpublic void close(boolean closeSecondary)
closeSecondary - if true, also close the secondary stream.
if false, only close this stream.
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||