org.codehaus.groovy.grails.web.util
Class CodecPrintWriter

java.lang.Object
  extended by java.io.Writer
      extended by org.codehaus.groovy.grails.web.util.GrailsPrintWriter
          extended by org.codehaus.groovy.grails.web.util.CodecPrintWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable, GrailsWrappedWriter

public class CodecPrintWriter
extends GrailsPrintWriter


Field Summary
 
Fields inherited from class org.codehaus.groovy.grails.web.util.GrailsPrintWriter
allowUnwrappingOut, CRLF, LOG, out, previousOut, streamCharBufferTarget, trouble, usageFlag
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
CodecPrintWriter(org.codehaus.groovy.grails.commons.GrailsApplication grailsApplication, java.io.Writer out, java.lang.Class<?> codecClass)
           
 
Method Summary
 GrailsPrintWriter append(java.lang.CharSequence csq)
           
 GrailsPrintWriter append(java.lang.CharSequence csq, int start, int end)
           
 GrailsPrintWriter append(java.lang.Object obj)
           
 void append(StreamCharBuffer otherBuffer)
           
protected  java.lang.Object clone()
           
protected  java.io.Writer findStreamCharBufferTarget(boolean markUsed)
           
 boolean isUsed()
           
 GrailsPrintWriter leftShift(StreamCharBuffer otherBuffer)
           
 void print(java.lang.Object obj)
          Print an object.
 void print(StreamCharBuffer otherBuffer)
           
 void print(java.lang.String s)
          Print a string.
 void println(StreamCharBuffer otherBuffer)
           
 void setOut(java.io.Writer newOut)
           
 void write(char[] buf)
           
 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(StreamCharBuffer otherBuffer)
           
 void write(java.lang.String s)
          Writes a string.
 void write(java.lang.String s, int off, int len)
          Write a portion of a string.
 void write(groovy.lang.Writable writable)
           
 
Methods inherited from class org.codehaus.groovy.grails.web.util.GrailsPrintWriter
append, asPrintWriter, asType, checkError, close, flush, getOut, isAllowUnwrappingOut, leftShift, leftShift, leftShift, markUsed, plus, print, print, print, print, print, print, print, print, print, println, println, println, println, println, println, println, println, println, println, resetUsed, setError, setUsed, unwrap, unwrapWriter
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodecPrintWriter

public CodecPrintWriter(org.codehaus.groovy.grails.commons.GrailsApplication grailsApplication,
                        java.io.Writer out,
                        java.lang.Class<?> codecClass)
Method Detail

setOut

public void setOut(java.io.Writer newOut)
Overrides:
setOut in class GrailsPrintWriter

isUsed

public boolean isUsed()
Overrides:
isUsed in class GrailsPrintWriter

findStreamCharBufferTarget

protected java.io.Writer findStreamCharBufferTarget(boolean markUsed)
Overrides:
findStreamCharBufferTarget in class GrailsPrintWriter

print

public void print(java.lang.Object obj)
Print an object. The string produced by the String.valueOf(Object) method is translated into bytes according to the platform's default character encoding, and these bytes are written in exactly the manner of the write(int) method.

Overrides:
print in class GrailsPrintWriter
Parameters:
obj - The Object to be printed
See Also:
Object.toString()

print

public void print(java.lang.String s)
Print a string. If the argument is null then the string "" is printed. Otherwise, the string's characters are converted into bytes according to the platform's default character encoding, and these bytes are written in exactly the manner of the write(int) method.

Overrides:
print in class GrailsPrintWriter
Parameters:
s - The String to be printed

write

public void write(java.lang.String s)
Writes a string. If the argument is null then the string "" is printed.

Overrides:
write in class GrailsPrintWriter
Parameters:
s - The String to be printed

write

public void write(int c)
Write a single character.

Overrides:
write in class GrailsPrintWriter
Parameters:
c - int specifying a character to be written.

write

public void write(char[] buf,
                  int off,
                  int len)
Write a portion of an array of characters.

Overrides:
write in class GrailsPrintWriter
Parameters:
buf - Array of characters
off - Offset from which to start writing characters
len - Number of characters to write

write

public void write(java.lang.String s,
                  int off,
                  int len)
Write a portion of a string.

Overrides:
write in class GrailsPrintWriter
Parameters:
s - A String
off - Offset from which to start writing characters
len - Number of characters to write

write

public void write(char[] buf)
Overrides:
write in class GrailsPrintWriter

append

public GrailsPrintWriter append(java.lang.CharSequence csq,
                                int start,
                                int end)
Specified by:
append in interface java.lang.Appendable
Overrides:
append in class GrailsPrintWriter

append

public GrailsPrintWriter append(java.lang.CharSequence csq)
Specified by:
append in interface java.lang.Appendable
Overrides:
append in class GrailsPrintWriter

append

public GrailsPrintWriter append(java.lang.Object obj)
Overrides:
append in class GrailsPrintWriter

clone

protected java.lang.Object clone()
                          throws java.lang.CloneNotSupportedException
Overrides:
clone in class GrailsPrintWriter
Throws:
java.lang.CloneNotSupportedException

write

public void write(StreamCharBuffer otherBuffer)
Overrides:
write in class GrailsPrintWriter

print

public void print(StreamCharBuffer otherBuffer)
Overrides:
print in class GrailsPrintWriter

append

public void append(StreamCharBuffer otherBuffer)
Overrides:
append in class GrailsPrintWriter

println

public void println(StreamCharBuffer otherBuffer)
Overrides:
println in class GrailsPrintWriter

leftShift

public GrailsPrintWriter leftShift(StreamCharBuffer otherBuffer)
Overrides:
leftShift in class GrailsPrintWriter

write

public void write(groovy.lang.Writable writable)
Overrides:
write in class GrailsPrintWriter