|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.Writer | +--java.io.PrintWriter | +--org.enhydra.xml.xmlc.html.parsers.tidy.TidyErrorHandler
Class for intercepting Tidy error output and doing custom error handing. This is a PrintWrite that overrides all public methods to do our own handling. It parses output looking for errors an warnings and passes them to the XMLC error handler. This is hack, hopefully Tidy.parse will get real error callbacks. It will break if tidy is ever localized.
Fields inherited from class java.io.PrintWriter |
out |
Fields inherited from class java.io.Writer |
lock |
Constructor Summary | |
TidyErrorHandler(ErrorReporter reporter,
String fileName,
LineNumberMap lineNumberMap)
Constructor. |
Method Summary | |
(package private) static void |
|
boolean |
checkError()
Flush the stream and check its error state. |
void |
close()
Close the stream. |
void |
flush()
Flush the stream. |
void |
println()
Finish the line. |
void |
println(boolean x)
Print a boolean, and then finish the line. |
void |
println(char x)
Print a character, and then finish the line. |
void |
println(char[] x)
Print an array of characters, and then finish the line. |
void |
println(double x)
Print a double, and then finish the line. |
void |
println(float x)
Print a float, and then finish the line. |
void |
println(int x)
Print an integer, and then finish the line. |
void |
println(long x)
Print a long, and then finish the line. |
void |
println(Object x)
Print an Object, and then finish the line. |
void |
println(String x)
Print a String, and then finish the line. |
void |
write(char[] buf,
int off,
int len)
Write a portion of an array of characters. |
void |
write(int c)
Write a single character. |
void |
write(String s)
Write a string. |
void |
write(String s,
int off,
int len)
Write a portion of a string. |
Methods inherited from class java.io.PrintWriter |
print, print, print, print, print, print, print, print, print, setError, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TidyErrorHandler(ErrorReporter reporter, String fileName, LineNumberMap lineNumberMap)
Method Detail |
static void()
public void flush()
flush
in class PrintWriter
public void close()
close
in class PrintWriter
public boolean checkError()
checkError
in class PrintWriter
public void write(int c)
write
in class PrintWriter
public void write(char[] buf, int off, int len)
write
in class PrintWriter
public void write(String s, int off, int len)
write
in class PrintWriter
public void write(String s)
write
in class PrintWriter
public void println()
println
in class PrintWriter
public void println(boolean x)
println
in class PrintWriter
public void println(char x)
println
in class PrintWriter
public void println(int x)
println
in class PrintWriter
public void println(long x)
println
in class PrintWriter
public void println(float x)
println
in class PrintWriter
public void println(double x)
println
in class PrintWriter
public void println(char[] x)
println
in class PrintWriter
public void println(String x)
println
in class PrintWriter
public void println(Object x)
println
in class PrintWriter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |