|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.Writer java.io.PrintWriter org.melati.util.ThrowingPrintWriter
public final class ThrowingPrintWriter
A PrintWriter
which can throw an Exception
.
Nested Class Summary | |
---|---|
static class |
ThrowingPrintWriter.SuperUseException
Thrown when a programmer attempts to use super.out . |
class |
ThrowingPrintWriter.TroubleException
Thrown if there is a problem writing to this ThowingPrintWriter . |
Field Summary | |
---|---|
String |
description
Description of this PrintWriter. |
Fields inherited from class java.io.PrintWriter |
---|
out |
Fields inherited from class java.io.Writer |
---|
lock |
Constructor Summary | |
---|---|
ThrowingPrintWriter(PrintWriter pw,
String description)
Constructor. |
Method Summary | |
---|---|
boolean |
checkError()
Delegated method. |
void |
close()
Delegated method. |
void |
flush()
Delegated method. |
void |
println()
Delegated method. |
void |
throwOnTrouble()
Check for problem and throw it if found. |
void |
write(char[] buf,
int off,
int len)
Delegated method. |
void |
write(int c)
Delegated method. |
void |
write(String buf,
int off,
int len)
Delegated method. |
Methods inherited from class java.io.PrintWriter |
---|
append, append, append, clearError, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, setError, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final String description
Constructor Detail |
---|
public ThrowingPrintWriter(PrintWriter pw, String description)
pw
- Preint writer to write todescription
- A descriptionMethod Detail |
---|
public void throwOnTrouble()
public void flush()
flush
in interface Flushable
flush
in class PrintWriter
PrintWriter.flush()
public void close()
close
in interface Closeable
close
in class PrintWriter
PrintWriter.close()
public boolean checkError()
checkError
in class PrintWriter
PrintWriter.checkError()
public void write(int c)
write
in class PrintWriter
PrintWriter.write(int)
public void write(char[] buf, int off, int len)
write
in class PrintWriter
PrintWriter.write(char[], int, int)
public void write(String buf, int off, int len)
write
in class PrintWriter
PrintWriter.write(java.lang.String, int, int)
public void println()
println
in class PrintWriter
PrintWriter.println()
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |