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

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

public final class BlockSource
extends AbstractSource

Implementation of a Source that gets its content by invoking the Block.

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

Constructor Summary
BlockSource(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

BlockSource

public BlockSource(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.