org.tinyjee.maven.dim.spi
Class AbstractSource.SourceContent

java.lang.Object
  extended by org.tinyjee.maven.dim.spi.AbstractSource.SourceContent
All Implemented Interfaces:
Source.Content
Direct Known Subclasses:
AbstractBufferedSource.BufferedSourceContent
Enclosing class:
AbstractSource

protected class AbstractSource.SourceContent
extends Object
implements Source.Content

Base implementation for source content.


Constructor Summary
protected AbstractSource.SourceContent()
           
 
Method Summary
 Map<String,Object> getParameters()
          Returns the parameters assigned with the content.
 Reader openReader()
          Returns the content as text stream.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractSource.SourceContent

protected AbstractSource.SourceContent()
Method Detail

getParameters

public Map<String,Object> getParameters()
Description copied from interface: Source.Content
Returns the parameters assigned with the content.

Specified by:
getParameters in interface Source.Content
Returns:
the parameters assigned with the content.

openReader

public Reader openReader()
                  throws IOException
Description copied from interface: Source.Content
Returns the content as text stream.

Specified by:
openReader in interface Source.Content
Returns:
a reader containing the content to include.
Throws:
IOException - in case of reading the sections failed.

toString

public String toString()
Overrides:
toString in class Object