org.tinyjee.maven.dim.sources
Class AbstractBufferedSource
java.lang.Object
org.tinyjee.maven.dim.spi.AbstractSource
org.tinyjee.maven.dim.sources.AbstractBufferedSource
- All Implemented Interfaces:
- Source
- Direct Known Subclasses:
- SourceClassAdapter, TemplateSource
public abstract class AbstractBufferedSource
- extends AbstractSource
Base class for source implementations that buffer (generated) content in memory.
- Author:
- Juergen_Kellerer, 2011-10-19
content
protected Source.Content content
AbstractBufferedSource
protected AbstractBufferedSource(URL sourceUrl,
Map<String,Object> parameters)
writeSourceContent
protected abstract void writeSourceContent(Writer writer)
throws IOException
- Is called when the source content has to be created.
- Parameters:
writer
- the writer to write the source content to.
- Throws:
IOException
- in case of writing failed.
getContent
public Source.Content getContent()
- Description copied from interface:
Source
- Retrieves the source content.
- Specified by:
getContent
in interface Source
- Overrides:
getContent
in class AbstractSource
- Returns:
- the source content.
reset
public void reset()