Home » sitemesh-2.4.1 » com.opensymphony.module » sitemesh » filter » [javadoc | source]
com.opensymphony.module.sitemesh.filter
public class: RoutablePrintWriter [javadoc | source]
java.lang.Object
   java.io.Writer
      java.io.PrintWriter
         com.opensymphony.module.sitemesh.filter.RoutablePrintWriter

All Implemented Interfaces:
    Closeable, Flushable, Appendable

Provides a PrintWriter that routes through to another PrintWriter, however the destination can be changed at any point. The destination can be passed in using a factory, so it will not be created until it's actually needed.
Nested Class Summary:
public static interface  RoutablePrintWriter.DestinationFactory  Factory to lazily instantiate the destination. 
Fields inherited from java.io.PrintWriter:
out
Fields inherited from java.io.Writer:
lock
Constructor:
 public RoutablePrintWriter(DestinationFactory factory) 
Method from com.opensymphony.module.sitemesh.filter.RoutablePrintWriter Summary:
checkError,   close,   flush,   print,   print,   print,   print,   print,   print,   print,   print,   print,   println,   println,   println,   println,   println,   println,   println,   println,   println,   println,   updateDestination,   write,   write,   write,   write,   write
Methods from java.io.PrintWriter:
append,   append,   append,   append,   append,   append,   append,   append,   append,   checkError,   clearError,   close,   flush,   format,   format,   print,   print,   print,   print,   print,   print,   print,   print,   print,   printf,   printf,   println,   println,   println,   println,   println,   println,   println,   println,   println,   println,   setError,   write,   write,   write,   write,   write
Methods from java.io.Writer:
append,   append,   append,   append,   append,   append,   close,   flush,   write,   write,   write,   write,   write
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.opensymphony.module.sitemesh.filter.RoutablePrintWriter Detail:
 public boolean checkError() 
 public  void close() 
 public  void flush() 
 public  void print(Object obj) 
 public  void print(String s) 
 public  void print(char[] s) 
 public  void print(double d) 
 public  void print(float f) 
 public  void print(long l) 
 public  void print(int i) 
 public  void print(char c) 
 public  void print(boolean b) 
 public  void println() 
 public  void println(Object x) 
 public  void println(String x) 
 public  void println(char[] x) 
 public  void println(double x) 
 public  void println(float x) 
 public  void println(long x) 
 public  void println(int x) 
 public  void println(char x) 
 public  void println(boolean x) 
 public  void updateDestination(DestinationFactory factory) 
 public  void write(String s) 
 public  void write(char[] buf) 
 public  void write(int c) 
 public  void write(String s,
    int off,
    int len) 
 public  void write(char[] buf,
    int off,
    int len)