public class RoutablePrintWriter extends java.io.PrintWriter implements SitemeshWriter
Modifier and Type | Class and Description |
---|---|
static interface |
RoutablePrintWriter.DestinationFactory
Factory to lazily instantiate the destination.
|
private static class |
RoutablePrintWriter.NullWriter
Just to keep super constructor for PrintWriter happy - it's never actually used.
|
Modifier and Type | Field and Description |
---|---|
private java.io.PrintWriter |
destination |
private RoutablePrintWriter.DestinationFactory |
factory |
Constructor and Description |
---|
RoutablePrintWriter(RoutablePrintWriter.DestinationFactory factory) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkError() |
void |
close() |
void |
flush() |
private java.io.PrintWriter |
getDestination() |
SitemeshBuffer |
getSitemeshBuffer()
Get the underlying buffer for the writer
|
void |
print(boolean b) |
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(java.lang.Object obj) |
void |
print(java.lang.String s) |
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(java.lang.Object x) |
void |
println(java.lang.String x) |
void |
updateDestination(RoutablePrintWriter.DestinationFactory factory) |
void |
write(char[] buf) |
void |
write(char[] buf,
int off,
int len) |
void |
write(int c) |
void |
write(java.lang.String s) |
void |
write(java.lang.String s,
int off,
int len) |
boolean |
writeSitemeshBufferFragment(SitemeshBufferFragment bufferFragment)
Write a sitemesh buffer fragment to the writer.
|
private java.io.PrintWriter destination
private RoutablePrintWriter.DestinationFactory factory
public RoutablePrintWriter(RoutablePrintWriter.DestinationFactory factory)
private java.io.PrintWriter getDestination()
public void updateDestination(RoutablePrintWriter.DestinationFactory factory)
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.PrintWriter
public void println(java.lang.Object x)
println
in class java.io.PrintWriter
public void println(java.lang.String x)
println
in class java.io.PrintWriter
public void println(char[] x)
println
in class java.io.PrintWriter
public void println(double x)
println
in class java.io.PrintWriter
public void println(float x)
println
in class java.io.PrintWriter
public void println(long x)
println
in class java.io.PrintWriter
public void println(int x)
println
in class java.io.PrintWriter
public void println(char x)
println
in class java.io.PrintWriter
public void println(boolean x)
println
in class java.io.PrintWriter
public void println()
println
in class java.io.PrintWriter
public void print(java.lang.Object obj)
print
in class java.io.PrintWriter
public void print(java.lang.String s)
print
in class java.io.PrintWriter
public void print(char[] s)
print
in class java.io.PrintWriter
public void print(double d)
print
in class java.io.PrintWriter
public void print(float f)
print
in class java.io.PrintWriter
public void print(long l)
print
in class java.io.PrintWriter
public void print(int i)
print
in class java.io.PrintWriter
public void print(char c)
print
in class java.io.PrintWriter
public void print(boolean b)
print
in class java.io.PrintWriter
public void write(java.lang.String s)
write
in class java.io.PrintWriter
public void write(java.lang.String s, int off, int len)
write
in class java.io.PrintWriter
public void write(char[] buf)
write
in class java.io.PrintWriter
public void write(char[] buf, int off, int len)
write
in class java.io.PrintWriter
public void write(int c)
write
in class java.io.PrintWriter
public boolean checkError()
checkError
in class java.io.PrintWriter
public void flush()
flush
in interface java.io.Flushable
flush
in class java.io.PrintWriter
public boolean writeSitemeshBufferFragment(SitemeshBufferFragment bufferFragment) throws java.io.IOException
SitemeshWriter
writeSitemeshBufferFragment
in interface SitemeshWriter
bufferFragment
- The buffer fragment to writejava.io.IOException
- If an IOException occurredpublic SitemeshBuffer getSitemeshBuffer()
SitemeshWriter
getSitemeshBuffer
in interface SitemeshWriter