|
||||||||||
| 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.sitemesh.GrailsRoutablePrintWriter
public class GrailsRoutablePrintWriter
| Nested Class Summary | |
|---|---|
static interface |
GrailsRoutablePrintWriter.DestinationFactory
Factory to lazily instantiate the destination. |
| Field Summary |
|---|
| Fields inherited from class org.codehaus.groovy.grails.web.util.GrailsPrintWriter |
|---|
allowUnwrappingOut, out, trouble |
| Fields inherited from class java.io.Writer |
|---|
lock |
| Constructor Summary | |
|---|---|
GrailsRoutablePrintWriter(GrailsRoutablePrintWriter.DestinationFactory factory)
|
|
| Method Summary | |
|---|---|
PrintWriter |
append(char c)
|
PrintWriter |
append(CharSequence csq)
|
PrintWriter |
append(CharSequence csq,
int start,
int end)
|
boolean |
checkError()
Flush the stream if it's not closed and check its error state. |
void |
close()
|
void |
flush()
Flush the stream. |
Writer |
getFinalTarget()
|
Writer |
getOut()
|
boolean |
isAllowUnwrappingOut()
tell others if getOut() can be called to "unwrap" the actual target writer if the destination hasn't been activated, don't allow it. |
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(String s)
Print a string. |
void |
println()
|
void |
println(boolean x)
|
void |
println(char x)
|
void |
println(char[] x)
|
void |
println(double x)
|
void |
println(float x)
|
void |
println(int x)
|
void |
println(long x)
|
void |
println(Object x)
|
void |
println(String x)
|
void |
updateDestination(GrailsRoutablePrintWriter.DestinationFactory factory)
|
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(String s)
Writes a string. |
void |
write(String s,
int off,
int len)
Write a portion of a string. |
| Methods inherited from class org.codehaus.groovy.grails.web.util.GrailsPrintWriter |
|---|
append, append, clone, handleIOException, isFinalTargetHere, isUsed, leftShift, leftShift, leftShift, plus, print, print, println, resetUsed, setFinalTargetHere, setUsed, write, write |
| Methods inherited from class java.io.PrintWriter |
|---|
format, format, printf, printf, setError |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GrailsRoutablePrintWriter(GrailsRoutablePrintWriter.DestinationFactory factory)
| Method Detail |
|---|
public boolean isAllowUnwrappingOut()
isAllowUnwrappingOut in class GrailsPrintWriterGrailsPrintWriter.isAllowUnwrappingOut()public Writer getOut()
getOut in class GrailsPrintWriterpublic Writer getFinalTarget()
getFinalTarget in class GrailsPrintWriterpublic void updateDestination(GrailsRoutablePrintWriter.DestinationFactory factory)
public void close()
close in interface Closeableclose in class PrintWriterpublic void println(Object x)
println in class GrailsPrintWriterpublic void println(String x)
println in class GrailsPrintWriterpublic void println(char[] x)
println in class GrailsPrintWriterpublic void println(double x)
println in class GrailsPrintWriterpublic void println(float x)
println in class GrailsPrintWriterpublic void println(long x)
println in class GrailsPrintWriterpublic void println(int x)
println in class GrailsPrintWriterpublic void println(char x)
println in class GrailsPrintWriterpublic void println(boolean x)
println in class GrailsPrintWriterpublic void println()
println in class GrailsPrintWriterpublic void print(Object obj)
GrailsPrintWriterString.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 GrailsPrintWriter.write(int)
method.
print in class GrailsPrintWriterobj - The Object to be printedObject.toString()public void print(String s)
GrailsPrintWriternull 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
GrailsPrintWriter.write(int) method.
print in class GrailsPrintWriters - The String to be printedpublic void print(char[] s)
print in class GrailsPrintWriterpublic void print(double d)
print in class GrailsPrintWriterpublic void print(float f)
print in class GrailsPrintWriterpublic void print(long l)
print in class GrailsPrintWriterpublic void print(int i)
print in class GrailsPrintWriterpublic void print(char c)
print in class GrailsPrintWriterpublic void print(boolean b)
GrailsPrintWriter
print in class GrailsPrintWriterpublic void write(String s)
GrailsPrintWriternull then the string
"" is printed.
write in class GrailsPrintWriters - The String to be printed
public void write(String s,
int off,
int len)
GrailsPrintWriter
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 GrailsPrintWriter
public void write(char[] buf,
int off,
int len)
GrailsPrintWriter
write in class GrailsPrintWriterbuf - Array of charactersoff - Offset from which to start writing characterslen - Number of characters to writepublic void write(int c)
GrailsPrintWriter
write in class GrailsPrintWriterc - int specifying a character to be written.public boolean checkError()
GrailsPrintWriter
checkError in class GrailsPrintWriterpublic void flush()
GrailsPrintWriter
flush in interface Flushableflush in class GrailsPrintWriterGrailsPrintWriter.checkError()public PrintWriter append(char c)
append in interface Appendableappend in class GrailsPrintWriter
public PrintWriter append(CharSequence csq,
int start,
int end)
append in interface Appendableappend in class GrailsPrintWriterpublic PrintWriter append(CharSequence csq)
append in interface Appendableappend in class GrailsPrintWriter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||