org.tinyjee.maven.dim.sources
Class AbstractBufferedSource.BufferedSourceContent

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

protected class AbstractBufferedSource.BufferedSourceContent
extends AbstractSource.SourceContent


Field Summary
protected  String bufferedContent
           
protected  IOException exception
           
 
Constructor Summary
protected AbstractBufferedSource.BufferedSourceContent(String bufferedContent, IOException exception)
           
 
Method Summary
 Reader openReader()
          Returns the content as text stream.
 String toString()
           
 
Methods inherited from class org.tinyjee.maven.dim.spi.AbstractSource.SourceContent
getParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

exception

protected final IOException exception

bufferedContent

protected final String bufferedContent
Constructor Detail

AbstractBufferedSource.BufferedSourceContent

protected AbstractBufferedSource.BufferedSourceContent(String bufferedContent,
                                                       IOException exception)
Method Detail

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
Overrides:
openReader in class AbstractSource.SourceContent
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 AbstractSource.SourceContent