|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.index.updater.DefaultIndexUpdater.FileFetcher
public static class DefaultIndexUpdater.FileFetcher
Filesystem-based ResourceFetcher implementation
Constructor Summary | |
---|---|
DefaultIndexUpdater.FileFetcher(File basedir)
|
Method Summary | |
---|---|
void |
connect(String id,
String url)
Connect and start transfer session |
void |
disconnect()
Disconnect and complete transfer session |
InputStream |
retrieve(String name)
Retrieves resource as InputStream |
void |
retrieve(String name,
File targetFile)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultIndexUpdater.FileFetcher(File basedir)
Method Detail |
---|
public void connect(String id, String url) throws IOException
ResourceFetcher
connect
in interface ResourceFetcher
IOException
public void disconnect() throws IOException
ResourceFetcher
disconnect
in interface ResourceFetcher
IOException
public void retrieve(String name, File targetFile) throws IOException, FileNotFoundException
IOException
FileNotFoundException
public InputStream retrieve(String name) throws IOException, FileNotFoundException
ResourceFetcher
retrieve
in interface ResourceFetcher
name
- a name of resource to retrieve
IOException
FileNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |