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

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

public class CodecPrintWriter
extends GrailsPrintWriter


Field Summary
(package private)  Method encodeMethod
           
(package private)  Class<?> encodeParamType
           
 
Fields inherited from class org.codehaus.groovy.grails.web.util.GrailsPrintWriter
allowUnwrappingOut, CRLF, LOG, out, trouble, usageFlag
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
CodecPrintWriter(Writer out, Class<?> codecClass)
           
 
Method Summary
 PrintWriter append(char c)
           
 PrintWriter append(CharSequence csq)
           
 PrintWriter append(CharSequence csq, int start, int end)
           
 GrailsPrintWriter append(Object obj)
           
 void append(StreamCharBuffer otherBuffer)
           
protected  Object clone()
           
 GrailsPrintWriter leftShift(StreamCharBuffer otherBuffer)
           
 GrailsPrintWriter leftShift(groovy.lang.Writable writable)
           
 void print(boolean b)
          delegate methods, not synchronized
 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)
          Print an object.
 void print(StreamCharBuffer otherBuffer)
           
 void print(String s)
          Print a string.
 void print(groovy.lang.Writable writable)
           
 void println()
           
 void println(boolean b)
           
 void println(char c)
           
 void println(char[] c)
           
 void println(double d)
           
 void println(float f)
           
 void println(int i)
           
 void println(long l)
           
 void println(Object o)
           
 void println(StreamCharBuffer otherBuffer)
           
 void println(String s)
           
 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(String s)
          Writes a string.
 void write(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
checkError, findStreamCharBufferTarget, flush, getFinalTarget, getOut, handleIOException, isAllowUnwrappingOut, isFinalTargetHere, isUsed, leftShift, plus, resetUsed, setFinalTargetHere, setUsed
 
Methods inherited from class java.io.PrintWriter
clearError, close, format, format, printf, printf, setError
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

encodeMethod

Method encodeMethod

encodeParamType

Class<?> encodeParamType
Constructor Detail

CodecPrintWriter

public CodecPrintWriter(Writer out,
                        Class<?> codecClass)
Method Detail

print

public void print(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(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(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(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

print

public void print(boolean b)
delegate methods, not synchronized

Overrides:
print in class GrailsPrintWriter

print

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

print

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

print

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

print

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

print

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

print

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

println

public void println()
Overrides:
println in class GrailsPrintWriter

println

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

println

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

println

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

println

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

println

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

println

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

println

public void println(char[] c)
Overrides:
println in class GrailsPrintWriter

println

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

println

public void println(Object o)
Overrides:
println in class GrailsPrintWriter

append

public PrintWriter append(char c)
Specified by:
append in interface Appendable
Overrides:
append in class GrailsPrintWriter

append

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

append

public PrintWriter append(CharSequence csq)
Specified by:
append in interface Appendable
Overrides:
append in class GrailsPrintWriter

append

public GrailsPrintWriter append(Object obj)
Overrides:
append in class GrailsPrintWriter

clone

protected Object clone()
                throws CloneNotSupportedException
Overrides:
clone in class GrailsPrintWriter
Throws:
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

print

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

leftShift

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