org.apache.cocoon.components.source.impl
Class BlocksSource

java.lang.Object
  extended byorg.apache.excalibur.source.impl.AbstractSource
      extended byorg.apache.cocoon.components.source.impl.BlocksSource
All Implemented Interfaces:
Source

public final class BlocksSource
extends AbstractSource

Implementation of a Source that gets its content by invoking the BlocksManager. WARNING: It is created for being able to use the blocks functionality without needing to change the Cocoon object and other fundamental classes. This class will probably be removed later.

Version:
$Id: BlocksSource.java 292282 2005-09-28 19:54:16Z vgritsenko $

Constructor Summary
BlocksSource(ServiceManager manager, String uri, Map parameters, Logger logger)
          Construct a new object
 
Method Summary
 boolean exists()
          Returns true always.
 InputStream getInputStream()
          Return an InputStream object to read from the source.
 void recycle()
          Recyclable
 
Methods inherited from class org.apache.excalibur.source.impl.AbstractSource
checkInfos, getContentLength, getInfos, getLastModified, getMimeType, getScheme, getURI, getValidity, refresh, setContentLength, setLastModified, setScheme, setSystemId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlocksSource

public BlocksSource(ServiceManager manager,
                    String uri,
                    Map parameters,
                    Logger logger)
             throws MalformedURLException
Construct a new object

Method Detail

getInputStream

public InputStream getInputStream()
                           throws IOException,
                                  SourceException
Return an InputStream object to read from the source.

Throws:
IOException
SourceException

exists

public boolean exists()
Returns true always.

See Also:
Source.exists()

recycle

public void recycle()
Recyclable



Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.