org.apache.portals.graffito.model.dm
Interface DocumentStream

All Superinterfaces:
java.lang.Cloneable

public interface DocumentStream
extends java.lang.Cloneable

CMS content interface.

Version:
$Id: Content.java,v 1.1 2004/12/22 21:16:10 christophe Exp $
Author:
Christophe Lombart

Method Summary
 java.lang.Object clone()
           
 java.lang.String getContentAsString()
           
 byte[] getContentByte()
           
 java.io.InputStream getContentStream()
           
 java.lang.String getEncoding()
           
 java.lang.String getIsoCode()
          Get the isoCode
 void setContent(byte[] content)
           
 void setContent(java.io.InputStream stream)
           
 void setEncoding(java.lang.String encoding)
           
 void setIsoCode(java.lang.String isoCode)
          Set the iso cocde
 

Method Detail

getContentStream

java.io.InputStream getContentStream()
Returns:
Returns the content.

getContentByte

byte[] getContentByte()
Returns:
Returns the content.

getContentAsString

java.lang.String getContentAsString()
Returns:
Returns the content in the String format

setContent

void setContent(java.io.InputStream stream)
Parameters:
stream - The content to set.

setContent

void setContent(byte[] content)
Parameters:
content - The content to set.

getEncoding

java.lang.String getEncoding()
Returns:
Returns the encoding.

setEncoding

void setEncoding(java.lang.String encoding)
Parameters:
encoding - The encoding to set.

getIsoCode

java.lang.String getIsoCode()
Get the isoCode

Returns:
the isocode

setIsoCode

void setIsoCode(java.lang.String isoCode)
Set the iso cocde

Parameters:
isoCode - The new iso code to set

clone

java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Returns:
the clonned object
Throws:
java.lang.CloneNotSupportedException - when it is not possible to clone the object


Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.