Class SitemeshPrintWriter
java.lang.Object
java.io.Writer
java.io.PrintWriter
com.opensymphony.module.sitemesh.filter.SitemeshPrintWriter
- All Implemented Interfaces:
SitemeshWriter,Closeable,Flushable,Appendable,AutoCloseable
A sitemesh print writer
-
Field Summary
Fields inherited from class java.io.PrintWriter
out -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the underlying buffer for the writerBecause writer is a class and not an interface we need a way to self reference so we can pass the underlying Writer onto other Writers.booleanwriteSitemeshBufferFragment(SitemeshBufferFragment bufferFragment) Write a sitemesh buffer fragment to the writer.Methods inherited from class java.io.PrintWriter
append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, writeMethods inherited from class java.io.Writer
nullWriter
-
Constructor Details
-
SitemeshPrintWriter
-
-
Method Details
-
getUnderlyingWriter
Description copied from interface:SitemeshWriterBecause writer is a class and not an interface we need a way to self reference so we can pass the underlying Writer onto other Writers.- Specified by:
getUnderlyingWriterin interfaceSitemeshWriter- Returns:
- a self reference to this so it can be wrapped say.
-
writeSitemeshBufferFragment
public boolean writeSitemeshBufferFragment(SitemeshBufferFragment bufferFragment) throws IOException Description copied from interface:SitemeshWriterWrite a sitemesh buffer fragment to the writer. This may not be written immediately, it may be stored and written later, when this buffer is written out to a writer.- Specified by:
writeSitemeshBufferFragmentin interfaceSitemeshWriter- Parameters:
bufferFragment- The buffer fragment to write- Returns:
- True if the buffer was written immediately, or false if it will be written later
- Throws:
IOException- If an IOException occurred
-
getSitemeshBuffer
Description copied from interface:SitemeshWriterGet the underlying buffer for the writer- Specified by:
getSitemeshBufferin interfaceSitemeshWriter- Returns:
- The underlying buffer
-