1 19 20 package org.netbeans.modules.xml.retriever; 21 22 import java.io.File ; 23 import java.io.IOException ; 24 import java.net.URI ; 25 import java.net.URISyntaxException ; 26 import java.net.UnknownHostException ; 27 import java.util.Map ; 28 import org.openide.filesystems.FileObject; 29 30 38 public abstract class Retriever { 39 40 55 public abstract FileObject retrieveResource( 56 FileObject destinationDir, 57 URI relativePathToCatalogFile, 58 URI resourceToRetrieve) 59 throws UnknownHostException , URISyntaxException , IOException ; 60 61 73 public abstract FileObject retrieveResource(FileObject destinationDir, URI resourceToRetrieve) 74 throws UnknownHostException , URISyntaxException , IOException ; 75 76 77 78 94 public abstract FileObject retrieveResourceClosureIntoSingleDirectory( 95 FileObject destinationDir, URI resourceToRetrieve) 96 throws UnknownHostException , URISyntaxException , IOException ; 97 98 99 100 108 @Deprecated () 109 public abstract File getProjectCatalog(); 110 111 114 public static Retriever getDefault(){ 115 return new RetrieverImpl(); 116 } 117 118 123 public abstract Map <RetrieveEntry, Exception > getRetrievedResourceExceptionMap(); 124 125 130 public abstract File retrieveResource(File targetFolder, URI source) 131 throws UnknownHostException , URISyntaxException , IOException ; 132 133 138 public abstract void setRecursiveRetrieve(boolean retrieveRecursively); 139 140 145 public abstract void setOverwriteFilesWithSameName(boolean overwriteFiles); 146 147 148 149 } 150 | Popular Tags |