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

All Implemented Interfaces:
    ModifiableSource

A Source that takes its content in a single JDBC column. Any kind of column can be used (clob, blob, varchar, etc), but "Blob" means that the whole content is contained in a single column.

The URL syntax is "blob:/datasource/table/column[cond]", where :

For example, "blob:/personel/people/photo[userid='foo']" will fetch the first column returned by the statement "SELECT photo from people where userid='foo'" in the datasource "personel"

Fields inherited from org.apache.cocoon.components.source.AbstractStreamSource:
transformerFactory,  manager
Constructor:
 public BlobSource(String url,
    ComponentManager manager) throws MalformedURLException 
    Create a file source from a 'blob:' url and a component manager.

    The url is of the form "blob:/datasource/table/column[condition]

Method from org.apache.cocoon.components.source.BlobSource Summary:
getInputStream,   getSystemId
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.BlobSource Detail:
 public InputStream getInputStream() throws IOException, ProcessingException 
    Get the input stream for this source.
 public String getSystemId() 
    Return the unique identifer for this source