Package org.grails.buffer
Class GrailsLazyProxyPrintWriter
- java.lang.Object
-
- java.io.Writer
-
- org.grails.buffer.GrailsPrintWriter
-
- org.grails.buffer.GrailsLazyProxyPrintWriter
-
- All Implemented Interfaces:
groovy.lang.GroovyObject,java.io.Closeable,java.io.Flushable,java.lang.Appendable,java.lang.AutoCloseable,GrailsWrappedWriter,EncodedAppenderWriterFactory
public class GrailsLazyProxyPrintWriter extends GrailsPrintWriter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGrailsLazyProxyPrintWriter.DestinationFactoryFactory to lazily instantiate the destination.
-
Field Summary
-
Fields inherited from class org.grails.buffer.GrailsPrintWriter
allowUnwrappingOut, CRLF, LOG, out, previousOut, streamCharBufferTarget, trouble, usageFlag
-
-
Constructor Summary
Constructors Constructor Description GrailsLazyProxyPrintWriter(GrailsLazyProxyPrintWriter.DestinationFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.WritergetOut()booleanisAllowUnwrappingOut()booleanisDestinationActivated()voidsetDestinationActivated(boolean destinationActivated)java.io.Writerunwrap()voidupdateDestination(GrailsLazyProxyPrintWriter.DestinationFactory f)-
Methods inherited from class org.grails.buffer.GrailsPrintWriter
append, append, append, append, append, appendNullCharSequence, asPrintWriter, asType, checkError, clone, close, findStreamCharBufferTarget, flush, getMetaClass, getProperty, getWriterForEncoder, invokeMethod, isUsed, leftShift, leftShift, leftShift, leftShift, leftShift, markUsed, plus, print, print, print, print, print, print, print, print, print, print, print, print, println, println, println, println, println, println, println, println, println, println, println, resetUsed, setError, setMetaClass, setOut, setProperty, setUsed, unwrapWriter, write, write, write, write, write, write, write, writeWritable
-
-
-
-
Constructor Detail
-
GrailsLazyProxyPrintWriter
public GrailsLazyProxyPrintWriter(GrailsLazyProxyPrintWriter.DestinationFactory factory)
-
-
Method Detail
-
getOut
public java.io.Writer getOut()
- Overrides:
getOutin classGrailsPrintWriter
-
isAllowUnwrappingOut
public boolean isAllowUnwrappingOut()
- Specified by:
isAllowUnwrappingOutin interfaceGrailsWrappedWriter- Overrides:
isAllowUnwrappingOutin classGrailsPrintWriter
-
unwrap
public java.io.Writer unwrap()
- Specified by:
unwrapin interfaceGrailsWrappedWriter- Overrides:
unwrapin classGrailsPrintWriter
-
updateDestination
public void updateDestination(GrailsLazyProxyPrintWriter.DestinationFactory f)
-
isDestinationActivated
public boolean isDestinationActivated()
- Overrides:
isDestinationActivatedin classGrailsPrintWriter
-
setDestinationActivated
public void setDestinationActivated(boolean destinationActivated)
-
-