org.apache.tapestry.markup
Interface MarkupWriterSource
- All Known Implementing Classes:
- MarkupWriterSourceImpl
public interface MarkupWriterSource
Service interface for tapestry.markup.MarkupWriterSource
service. A factory
service that creates new instances of IMarkupWriter
, configured for
different content types;
- Since:
- 4.0
- Author:
- Howard M. Lewis Ship
newMarkupWriter
IMarkupWriter newMarkupWriter(java.io.PrintWriter writer,
ContentType contentType)
- Creates and returns a new instance of
IMarkupWriter
. The content
type is used to find the proper implemenation. Any additional content type data (after a ';')
is ignored.
- Parameters:
writer
- The PrintWriter
to which the markup writer should send output.contentType
- Used to locate the correct markup writer implementation (used to select a
MarkupFilter
.
- Returns:
- The configured markup writer instance.