public class CodecPrintWriter extends GrailsPrintWriter
allowUnwrappingOut, CRLF, LOG, out, previousOut, streamCharBufferTarget, trouble, usageFlag| Constructor and Description |
|---|
CodecPrintWriter(org.codehaus.groovy.grails.commons.GrailsApplication grailsApplication,
java.io.Writer out,
java.lang.Class<?> codecClass) |
| Modifier and Type | Method and Description |
|---|---|
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) |
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, unwrapWriterpublic CodecPrintWriter(org.codehaus.groovy.grails.commons.GrailsApplication grailsApplication,
java.io.Writer out,
java.lang.Class<?> codecClass)
public void setOut(java.io.Writer newOut)
setOut in class GrailsPrintWriterpublic boolean isUsed()
isUsed in class GrailsPrintWriterprotected java.io.Writer findStreamCharBufferTarget(boolean markUsed)
findStreamCharBufferTarget in class GrailsPrintWriterpublic void print(java.lang.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 GrailsPrintWriterobj - The Object to be printedObject.toString()public void print(java.lang.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 GrailsPrintWriters - The String to be printedpublic void write(java.lang.String s)
null then the string
"" is printed.write in class GrailsPrintWriters - The String to be printedpublic void write(int c)
write in class GrailsPrintWriterc - int specifying a character to be written.public void write(char[] buf,
int off,
int len)
write in class GrailsPrintWriterbuf - Array of charactersoff - Offset from which to start writing characterslen - Number of characters to writepublic void write(java.lang.String s,
int off,
int len)
write in class GrailsPrintWriters - A Stringoff - Offset from which to start writing characterslen - Number of characters to writepublic void write(char[] buf)
write in class GrailsPrintWriterpublic GrailsPrintWriter append(java.lang.CharSequence csq, int start, int end)
append in interface java.lang.Appendableappend in class GrailsPrintWriterpublic GrailsPrintWriter append(java.lang.CharSequence csq)
append in interface java.lang.Appendableappend in class GrailsPrintWriterpublic GrailsPrintWriter append(java.lang.Object obj)
append in class GrailsPrintWriterprotected java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class GrailsPrintWriterjava.lang.CloneNotSupportedExceptionpublic void write(StreamCharBuffer otherBuffer)
write in class GrailsPrintWriterpublic void print(StreamCharBuffer otherBuffer)
print in class GrailsPrintWriterpublic void append(StreamCharBuffer otherBuffer)
append in class GrailsPrintWriterpublic void println(StreamCharBuffer otherBuffer)
println in class GrailsPrintWriterpublic GrailsPrintWriter leftShift(StreamCharBuffer otherBuffer)
leftShift in class GrailsPrintWriterpublic void write(groovy.lang.Writable writable)
write in class GrailsPrintWriter