Coalevo Logo

net.coalevo.discussion.model
Interface EditableContent

All Superinterfaces:
Content

public interface EditableContent
extends Content

Defines an editable content.

Version:
1.0.0 (10/02/2009)
Author:
Dieter Wimberger (wimpi)

Method Summary
 void setContent(java.io.InputStream in)
          Sets the content from the given InputStream.
 void setContent(java.lang.String content)
          Sets the content.
 Content toContent()
          Returns a new non-editable content instance.
 
Methods inherited from interface net.coalevo.discussion.model.Content
getContent, isEmpty, writeTo
 

Method Detail

setContent

void setContent(java.lang.String content)
Sets the content.

Parameters:
content - a String.

setContent

void setContent(java.io.InputStream in)
                throws java.io.IOException
Sets the content from the given InputStream.

Parameters:
in - the InputStream to obtain the content from.
Throws:
java.io.IOException - if I/O fails.

toContent

Content toContent()
Returns a new non-editable content instance.

Returns:
a Content instance.

Coalevo Logo

(c) 2004-2009 VFI (http://www.vfi.or.at)