Save This Page
Home » cocoon-2.1.11-src » org.apache » cocoon » components » source » [javadoc | source]
org.apache.cocoon.components.source
abstract public class: AbstractStreamWriteableSource [javadoc | source]
java.lang.Object
   org.apache.avalon.framework.logger.AbstractLogEnabled
      org.apache.cocoon.components.source.AbstractStreamSource
         org.apache.cocoon.components.source.AbstractStreamWriteableSource

All Implemented Interfaces:
    WriteableSource, ModifiableSource

Direct Known Subclasses:
    FileSource

Deprecated! Use - the new Avalon Excalibur Source Resolving

This abstract class provides convenience methods to implement a stream based org.apache.cocoon.environment.WriteableSource. Implement getOutputStream() to obtain a valid implementation.

This base implementation creates a ContentHandler by using the sitemap 'xml' serializer to write SAX events to the stream returned by getOutputStream().

Fields inherited from org.apache.cocoon.components.source.AbstractStreamSource:
transformerFactory,  manager
Constructor:
 protected AbstractStreamWriteableSource(ComponentManager manager) 
Method from org.apache.cocoon.components.source.AbstractStreamWriteableSource Summary:
canCancel,   canCancel,   cancel,   cancel,   getContentHandler
Methods from org.apache.cocoon.components.source.AbstractStreamSource:
exists,   getContentLength,   getInputSource,   getLastModified,   isHTMLContent,   recycle,   refresh,   toSAX
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cocoon.components.source.AbstractStreamWriteableSource Detail:
 public boolean canCancel(ContentHandler handler) 
      Deprecated!
    Checks if the OutputStream under handler can be cancelled.
 public boolean canCancel(OutputStream stream) 
      Deprecated!
    Always return false. To be redefined by implementations that support cancel().
 public  void cancel(ContentHandler handler) throws Exception 
      Deprecated!
    Cancels the OutputStream under handler.
 public  void cancel(OutputStream stream) throws Exception 
      Deprecated!
    Always throw UnsupportedOperationException. To be redefined by implementations that support cancel().
 public ContentHandler getContentHandler() throws SAXException, ProcessingException 
      Deprecated!
    Get a ContentHandler to write a SAX stream to this source. It uses either the 'xml' or 'html' serializer depending on the result of #isHTMLContent() to serialize events, and thus these serializers must exist in this source's component manager.