Coalevo Logo

net.coalevo.discussion.model
Interface Content

All Known Subinterfaces:
EditableContent

public interface Content

Defines a content.

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

Method Summary
 java.lang.String getContent()
          Returns the body.
 boolean isEmpty()
          Tests if this Content is empty.
 void writeTo(java.io.OutputStream out)
          Writes the content to the given output stream.
 

Method Detail

getContent

java.lang.String getContent()
Returns the body.

Returns:
the body as string.

writeTo

void writeTo(java.io.OutputStream out)
             throws java.io.IOException
Writes the content to the given output stream.

Parameters:
out - the OutputStream.
Throws:
java.io.IOException - if an I/O error occurs.

isEmpty

boolean isEmpty()
Tests if this Content is empty.

Returns:
true if empty, false otherwise.

Coalevo Logo

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