jay.yydebug
Class yyPrintStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by java.io.PrintStream
              extended by jay.yydebug.yyPrintStream
All Implemented Interfaces:
Closeable, Flushable, Appendable

public abstract class yyPrintStream
extends PrintStream

used to reroute standard and diagnostic output, auto-flushes. All print methods delegate to the write-buffer method; subclass must implement the write and close methods to route the actual output.


Field Summary
protected static String nl
          line.separator property.
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
yyPrintStream()
          layered on top of a FilterOutputStream which is itself layered on null.
 
Method Summary
 boolean checkError()
           
abstract  void close()
           
 void flush()
           
 void print(boolean b)
           
 void print(char c)
           
 void print(char[] s)
           
 void print(double d)
           
 void print(float f)
           
 void print(int i)
           
 void print(long l)
           
 void print(Object obj)
           
 void print(String s)
           
 void println()
           
 void println(boolean b)
           
 void println(char c)
           
 void println(char[] s)
           
 void println(double d)
           
 void println(float f)
           
 void println(int i)
           
 void println(long l)
           
 void println(Object obj)
           
 void println(String s)
           
abstract  void write(byte[] buf, int off, int len)
           
abstract  void write(int b)
           
 
Methods inherited from class java.io.PrintStream
append, append, append, append, append, append, format, format, printf, printf, setError
 
Methods inherited from class java.io.FilterOutputStream
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nl

protected static final String nl
line.separator property.

Constructor Detail

yyPrintStream

public yyPrintStream()
layered on top of a FilterOutputStream which is itself layered on null. Any access would cause a NullPointerException.

Method Detail

checkError

public boolean checkError()
Overrides:
checkError in class PrintStream

close

public abstract void close()
Specified by:
close in interface Closeable
Overrides:
close in class PrintStream

flush

public void flush()
Specified by:
flush in interface Flushable
Overrides:
flush in class PrintStream

print

public void print(boolean b)
Overrides:
print in class PrintStream

print

public void print(char c)
Overrides:
print in class PrintStream

print

public void print(char[] s)
Overrides:
print in class PrintStream

print

public void print(double d)
Overrides:
print in class PrintStream

print

public void print(float f)
Overrides:
print in class PrintStream

print

public void print(int i)
Overrides:
print in class PrintStream

print

public void print(long l)
Overrides:
print in class PrintStream

print

public void print(Object obj)
Overrides:
print in class PrintStream

print

public void print(String s)
Overrides:
print in class PrintStream

println

public void println()
Overrides:
println in class PrintStream

println

public void println(boolean b)
Overrides:
println in class PrintStream

println

public void println(char c)
Overrides:
println in class PrintStream

println

public void println(char[] s)
Overrides:
println in class PrintStream

println

public void println(double d)
Overrides:
println in class PrintStream

println

public void println(float f)
Overrides:
println in class PrintStream

println

public void println(int i)
Overrides:
println in class PrintStream

println

public void println(long l)
Overrides:
println in class PrintStream

println

public void println(Object obj)
Overrides:
println in class PrintStream

println

public void println(String s)
Overrides:
println in class PrintStream

write

public abstract void write(byte[] buf,
                           int off,
                           int len)
Overrides:
write in class PrintStream

write

public abstract void write(int b)
Overrides:
write in class PrintStream