|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.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 |
---|
clearError, 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 GrailsPrintWriter
GrailsPrintWriter.isAllowUnwrappingOut()
public Writer getOut()
getOut
in class GrailsPrintWriter
public Writer getFinalTarget()
getFinalTarget
in class GrailsPrintWriter
public void updateDestination(GrailsRoutablePrintWriter.DestinationFactory factory)
public void close()
close
in interface Closeable
close
in class PrintWriter
public void println(Object x)
println
in class GrailsPrintWriter
public void println(String x)
println
in class GrailsPrintWriter
public void println(char[] x)
println
in class GrailsPrintWriter
public void println(double x)
println
in class GrailsPrintWriter
public void println(float x)
println
in class GrailsPrintWriter
public void println(long x)
println
in class GrailsPrintWriter
public void println(int x)
println
in class GrailsPrintWriter
public void println(char x)
println
in class GrailsPrintWriter
public void println(boolean x)
println
in class GrailsPrintWriter
public void println()
println
in class GrailsPrintWriter
public void print(Object obj)
GrailsPrintWriter
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 GrailsPrintWriter.write(int)
method.
print
in class GrailsPrintWriter
obj
- The Object
to be printedObject.toString()
public void print(String s)
GrailsPrintWriter
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
GrailsPrintWriter.write(int)
method.
print
in class GrailsPrintWriter
s
- The String
to be printedpublic void print(char[] s)
print
in class GrailsPrintWriter
public void print(double d)
print
in class GrailsPrintWriter
public void print(float f)
print
in class GrailsPrintWriter
public void print(long l)
print
in class GrailsPrintWriter
public void print(int i)
print
in class GrailsPrintWriter
public void print(char c)
print
in class GrailsPrintWriter
public void print(boolean b)
GrailsPrintWriter
print
in class GrailsPrintWriter
public void write(String s)
GrailsPrintWriter
null
then the string
""
is printed.
write
in class GrailsPrintWriter
s
- The String
to be printedpublic void write(String s, int off, int len)
GrailsPrintWriter
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 write(char[] buf, int off, int len)
GrailsPrintWriter
write
in class GrailsPrintWriter
buf
- Array of charactersoff
- Offset from which to start writing characterslen
- Number of characters to writepublic void write(int c)
GrailsPrintWriter
write
in class GrailsPrintWriter
c
- int specifying a character to be written.public boolean checkError()
GrailsPrintWriter
checkError
in class GrailsPrintWriter
public void flush()
GrailsPrintWriter
flush
in interface Flushable
flush
in class GrailsPrintWriter
GrailsPrintWriter.checkError()
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |