org.apache.cocoon.components.source
public class: BlobSourceFactory [javadoc |
source]
java.lang.Object
org.apache.avalon.framework.logger.AbstractLoggable
org.apache.cocoon.components.source.BlobSourceFactory
All Implemented Interfaces:
SourceFactory, org.apache.avalon.framework.thread.ThreadSafe, org.apache.avalon.framework.component.Composable
A factory for 'blob:' sources.
- author:
< - a href="mailto:sylvain@apache.org">Sylvain Wallez
- version:
$ - Id: BlobSourceFactory.java,v 1.1 2002/03/15 18:49:32 sylvain Exp $
| Method from org.apache.cocoon.components.source.BlobSourceFactory Detail: |
public void compose(ComponentManager manager) throws ComponentException {
this.manager = manager;
}
|
public Source getSource(Environment environment,
String location) throws MalformedURLException, IOException, ProcessingException {
Source result = new BlobSource(location, this.manager);
setupLogger(result);
return result;
}
|
public Source getSource(Environment environment,
URL base,
String location) throws MalformedURLException, IOException, ProcessingException {
return getSource(environment, new URL(base, location).toExternalForm());
}
|