info.magnolia.cms.util
Class LazyInitPrintWriter

java.lang.Object
  extended by java.io.Writer
      extended by java.io.PrintWriter
          extended by info.magnolia.cms.util.LazyInitPrintWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable

public class LazyInitPrintWriter
extends java.io.PrintWriter

Writer that only opens the underlying writer when there is something needed to be written. This allows us to pass around a Writer instance without actually having acquired it from the servlet response.


Field Summary
 
Fields inherited from class java.io.PrintWriter
out
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
LazyInitPrintWriter(javax.servlet.ServletResponse response)
           
 
Method Summary
 
Methods inherited from class java.io.PrintWriter
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 inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LazyInitPrintWriter

public LazyInitPrintWriter(javax.servlet.ServletResponse response)


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.