org.apache.cocoon.components.source
public class: FileSourceFactory [javadoc |
source]
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.components.source.FileSourceFactory
All Implemented Interfaces:
SourceFactory, org.apache.avalon.framework.thread.ThreadSafe, org.apache.avalon.framework.component.Composable
Deprecated! Use - the new avalon source resolving instead
A factory for 'file:' sources.
- author:
< - a href="mailto:sylvain@apache.org">Sylvain Wallez
- version:
CVS - $Id: FileSourceFactory.java 433543 2006-08-22 06:22:54Z crossley $
| Method from org.apache.cocoon.components.source.FileSourceFactory Detail: |
public void compose(ComponentManager manager) throws ComponentException {
this.manager = manager;
} Deprecated! |
public Source getSource(Environment environment,
String location) throws MalformedURLException, IOException, ProcessingException {
Source result = new FileSource(location, this.manager);
setupLogger(result);
return result;
} Deprecated! |
public Source getSource(Environment environment,
URL base,
String location) throws MalformedURLException, IOException, ProcessingException {
return getSource(environment, new URL(base, location).toExternalForm());
} Deprecated! |