org.apache.portals.graffito.model.dm.impl
Class DocumentStreamImpl

java.lang.Object
  extended by org.apache.portals.graffito.model.dm.impl.DocumentStreamImpl
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, org.apache.portals.graffito.model.dm.DocumentStream

public class DocumentStreamImpl
extends java.lang.Object
implements org.apache.portals.graffito.model.dm.DocumentStream, java.io.Serializable

CMS Version implementation.

Author:
Christophe Lombart
See Also:
Serialized Form

Field Summary
protected  byte[] content
           
protected  java.lang.Long documentStreamId
           
protected  java.lang.String encoding
           
protected  java.lang.String isoCode
           
protected static org.apache.commons.logging.Log log
           
 
Constructor Summary
DocumentStreamImpl()
           
 
Method Summary
 java.lang.Object clone()
           
 java.lang.String getContentAsString()
           
 byte[] getContentByte()
           
 java.io.InputStream getContentStream()
           
 java.lang.Long getDocumentStreamId()
           
 java.lang.String getEncoding()
           
 java.lang.String getIsoCode()
           
 void setContent(byte[] stream)
           
 void setContent(java.io.InputStream stream)
           
 void setDocumentStreamId(java.lang.Long documentStreamId)
           
 void setEncoding(java.lang.String encoding)
           
 void setIsoCode(java.lang.String isoCode)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.commons.logging.Log log

documentStreamId

protected java.lang.Long documentStreamId

content

protected byte[] content

encoding

protected java.lang.String encoding

isoCode

protected java.lang.String isoCode
Constructor Detail

DocumentStreamImpl

public DocumentStreamImpl()
Method Detail

getDocumentStreamId

public java.lang.Long getDocumentStreamId()
Returns:
Returns the documentStreamId.

setDocumentStreamId

public void setDocumentStreamId(java.lang.Long documentStreamId)
Parameters:
documentStreamId - The documentStreamId to set.

getContentStream

public java.io.InputStream getContentStream()
Specified by:
getContentStream in interface org.apache.portals.graffito.model.dm.DocumentStream
See Also:
DocumentStream.getContentStream()

getContentByte

public byte[] getContentByte()
Specified by:
getContentByte in interface org.apache.portals.graffito.model.dm.DocumentStream
See Also:
DocumentStream.getContentByte()

getContentAsString

public java.lang.String getContentAsString()
Specified by:
getContentAsString in interface org.apache.portals.graffito.model.dm.DocumentStream
See Also:
DocumentStream.getContentAsString()

setContent

public void setContent(java.io.InputStream stream)
Specified by:
setContent in interface org.apache.portals.graffito.model.dm.DocumentStream
See Also:
DocumentStream.setContent(java.io.InputStream)

setContent

public void setContent(byte[] stream)
Specified by:
setContent in interface org.apache.portals.graffito.model.dm.DocumentStream
See Also:
DocumentStream.setContent(byte[])

getEncoding

public java.lang.String getEncoding()
Specified by:
getEncoding in interface org.apache.portals.graffito.model.dm.DocumentStream
Returns:
Returns the encoding.

setEncoding

public void setEncoding(java.lang.String encoding)
Specified by:
setEncoding in interface org.apache.portals.graffito.model.dm.DocumentStream
Parameters:
encoding - The encoding to set.

getIsoCode

public java.lang.String getIsoCode()
Specified by:
getIsoCode in interface org.apache.portals.graffito.model.dm.DocumentStream
See Also:
DocumentStream.getIsoCode()

setIsoCode

public void setIsoCode(java.lang.String isoCode)
Specified by:
setIsoCode in interface org.apache.portals.graffito.model.dm.DocumentStream
See Also:
DocumentStream.setIsoCode(java.lang.String)

clone

public java.lang.Object clone()
Specified by:
clone in interface org.apache.portals.graffito.model.dm.DocumentStream
Overrides:
clone in class java.lang.Object
See Also:
Object.clone()


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