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

java.lang.Objectjava.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 description| Method Detail |
|---|
public void throwOnTrouble()
public void flush()
flush in interface Flushableflush in class PrintWriterPrintWriter.flush()public void close()
close in interface Closeableclose in class PrintWriterPrintWriter.close()public boolean checkError()
checkError in class PrintWriterPrintWriter.checkError()public void write(int c)
write in class PrintWriterPrintWriter.write(int)
public void write(char[] buf,
int off,
int len)
write in class PrintWriterPrintWriter.write(char[], int, int)
public void write(String buf,
int off,
int len)
write in class PrintWriterPrintWriter.write(java.lang.String, int, int)public void println()
println in class PrintWriterPrintWriter.println()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||