|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.Writer
java.io.PrintWriter
org.codehaus.groovy.grails.web.util.GrailsPrintWriter
org.codehaus.groovy.grails.web.util.CodecPrintWriter
public class CodecPrintWriter
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 |
---|
Method encodeMethod
Class<?> encodeParamType
Constructor Detail |
---|
public CodecPrintWriter(Writer out, Class<?> codecClass)
Method Detail |
---|
public void print(Object obj)
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.
print
in class GrailsPrintWriter
obj
- The Object
to be printedObject.toString()
public void print(String s)
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.
print
in class GrailsPrintWriter
s
- The String
to be printedpublic void write(String s)
null
then the string
""
is printed.
write
in class GrailsPrintWriter
s
- The String
to be printedpublic void write(int c)
write
in class GrailsPrintWriter
c
- int specifying a character to be written.public void write(char[] buf, int off, int len)
write
in class GrailsPrintWriter
buf
- Array of charactersoff
- Offset from which to start writing characterslen
- Number of characters to writepublic void write(String s, int off, int len)
write
in class GrailsPrintWriter
s
- A Stringoff
- Offset from which to start writing characterslen
- Number of characters to writepublic void write(char[] buf)
write
in class GrailsPrintWriter
public void print(boolean b)
print
in class GrailsPrintWriter
public void print(char c)
print
in class GrailsPrintWriter
public void print(int i)
print
in class GrailsPrintWriter
public void print(long l)
print
in class GrailsPrintWriter
public void print(float f)
print
in class GrailsPrintWriter
public void print(double d)
print
in class GrailsPrintWriter
public void print(char[] s)
print
in class GrailsPrintWriter
public void println()
println
in class GrailsPrintWriter
public void println(boolean b)
println
in class GrailsPrintWriter
public void println(char c)
println
in class GrailsPrintWriter
public void println(int i)
println
in class GrailsPrintWriter
public void println(long l)
println
in class GrailsPrintWriter
public void println(float f)
println
in class GrailsPrintWriter
public void println(double d)
println
in class GrailsPrintWriter
public void println(char[] c)
println
in class GrailsPrintWriter
public void println(String s)
println
in class GrailsPrintWriter
public void println(Object o)
println
in class GrailsPrintWriter
public PrintWriter append(char c)
append
in interface Appendable
append
in class GrailsPrintWriter
public PrintWriter append(CharSequence csq, int start, int end)
append
in interface Appendable
append
in class GrailsPrintWriter
public PrintWriter append(CharSequence csq)
append
in interface Appendable
append
in class GrailsPrintWriter
public GrailsPrintWriter append(Object obj)
append
in class GrailsPrintWriter
protected Object clone() throws CloneNotSupportedException
clone
in class GrailsPrintWriter
CloneNotSupportedException
public void write(StreamCharBuffer otherBuffer)
write
in class GrailsPrintWriter
public void print(StreamCharBuffer otherBuffer)
print
in class GrailsPrintWriter
public void append(StreamCharBuffer otherBuffer)
append
in class GrailsPrintWriter
public void println(StreamCharBuffer otherBuffer)
println
in class GrailsPrintWriter
public GrailsPrintWriter leftShift(StreamCharBuffer otherBuffer)
leftShift
in class GrailsPrintWriter
public void write(groovy.lang.Writable writable)
write
in class GrailsPrintWriter
public void print(groovy.lang.Writable writable)
print
in class GrailsPrintWriter
public GrailsPrintWriter leftShift(groovy.lang.Writable writable)
leftShift
in class GrailsPrintWriter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |