1 17 package org.apache.excalibur.source.impl; 18 19 import java.io.IOException ; 20 import java.net.MalformedURLException ; 21 import java.util.Map ; 22 23 import org.apache.avalon.framework.thread.ThreadSafe; 24 import org.apache.excalibur.source.Source; 25 import org.apache.excalibur.source.SourceFactory; 26 import org.apache.excalibur.source.URIAbsolutizer; 27 import org.apache.excalibur.source.SourceUtil; 28 29 40 public class FileSourceFactory implements SourceFactory, ThreadSafe, URIAbsolutizer 41 { 42 43 46 public Source getSource(String location, Map parameters) throws IOException , MalformedURLException 47 { 48 return new FileSource(location); 49 } 50 51 56 public void release(Source source) 57 { 58 } 60 61 public String absolutize(String baseURI, String location) 62 { 63 return SourceUtil.absolutize(baseURI, location, false, false); 68 } 69 } 70 | Popular Tags |