org.apache.maven.index.updater
Class DefaultIndexUpdater.FileFetcher

java.lang.Object
  extended by org.apache.maven.index.updater.DefaultIndexUpdater.FileFetcher
All Implemented Interfaces:
ResourceFetcher
Enclosing class:
DefaultIndexUpdater

public static class DefaultIndexUpdater.FileFetcher
extends Object
implements ResourceFetcher

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

DefaultIndexUpdater.FileFetcher

public DefaultIndexUpdater.FileFetcher(File basedir)
Method Detail

connect

public void connect(String id,
                    String url)
             throws IOException
Description copied from interface: ResourceFetcher
Connect and start transfer session

Specified by:
connect in interface ResourceFetcher
Throws:
IOException

disconnect

public void disconnect()
                throws IOException
Description copied from interface: ResourceFetcher
Disconnect and complete transfer session

Specified by:
disconnect in interface ResourceFetcher
Throws:
IOException

retrieve

public void retrieve(String name,
                     File targetFile)
              throws IOException,
                     FileNotFoundException
Throws:
IOException
FileNotFoundException

retrieve

public InputStream retrieve(String name)
                     throws IOException,
                            FileNotFoundException
Description copied from interface: ResourceFetcher
Retrieves resource as InputStream

Specified by:
retrieve in interface ResourceFetcher
Parameters:
name - a name of resource to retrieve
Throws:
IOException
FileNotFoundException


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.