org.apache.lenya.cms.publication
Class OpenDocumentWrapper

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.lenya.cms.publication.OpenDocumentWrapper
All Implemented Interfaces:
org.apache.avalon.framework.logger.LogEnabled

public class OpenDocumentWrapper
extends org.apache.avalon.framework.logger.AbstractLogEnabled

Wrapper class for the ODT resource type.


Field Summary
static java.lang.String ODT_EXTENSION
          The extension for ODT documents.
static java.lang.String ODT_MIME_TYPE
          The mime-type for ODT documents.
 
Constructor Summary
OpenDocumentWrapper(org.apache.lenya.cms.publication.Document doc, org.apache.avalon.framework.logger.Logger logger)
           
 
Method Summary
 void write(java.io.InputStream inputStream)
          Writes the content of the resource.
 void write(org.apache.cocoon.servlet.multipart.Part file)
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ODT_EXTENSION

public static final java.lang.String ODT_EXTENSION
The extension for ODT documents.

See Also:
Constant Field Values

ODT_MIME_TYPE

public static final java.lang.String ODT_MIME_TYPE
The mime-type for ODT documents.

See Also:
Constant Field Values
Constructor Detail

OpenDocumentWrapper

public OpenDocumentWrapper(org.apache.lenya.cms.publication.Document doc,
                           org.apache.avalon.framework.logger.Logger logger)
Parameters:
doc - The document to wrap.
logger - The logger.
Method Detail

write

public void write(org.apache.cocoon.servlet.multipart.Part file)
Parameters:
file - The part to write.

write

public void write(java.io.InputStream inputStream)
Writes the content of the resource.

Parameters:
inputStream - The input stream providing the content.


Copyright © $ Apache Software Foundation. All Rights Reserved.