RemoteFileResolver

public class RemoteFileResolver
extends Object

java.lang.Object
   ↳ com.android.tradefed.config.RemoteFileResolver


Prosta klasa, która umożliwia wczytywanie plików z różnych miejsc za pomocą identyfikatorów URI i funkcji dostawcy usług.

Podsumowanie

Konstruktory publiczne

RemoteFileResolver()

Metody publiczne

static IRemoteFileResolver getDefaultResolver(URI fileURI, config)

Załaduj plik określony przez identyfikator URI i umieszczaj go w katalogu docelowym.

static IRemoteFileResolver.ResolvedFile resolveRemoteFile(URI fileURI, URI destDir)

Załaduj plik określony przez identyfikator URI i umieszczaj go w katalogu docelowym.

static IRemoteFileResolver.ResolvedFile resolveRemoteFile(URI fileURI, URI destDir, IRemoteFileResolver resolver)

Załaduj plik określony przez identyfikator URI i umieszczaj go w katalogu docelowym.

Konstruktory publiczne

RemoteFileResolver

public RemoteFileResolver ()

Metody publiczne

getDefaultResolver

public static IRemoteFileResolver getDefaultResolver (URI fileURI, 
                 config)

Załaduj plik określony przez identyfikator URI i umieszczaj go w katalogu docelowym.

Parametry
fileURI URI: plik do załadowania (potrzebny do określenia protokołu)

config : konfiguracja, za pomocą której można zainicjować rozwiązywanie

Zwroty
IRemoteFileResolver obiekt IRemoteFileResolver do wczytywania plików dla danego protokołu

resolveRemoteFile

public static IRemoteFileResolver.ResolvedFile resolveRemoteFile (URI fileURI, 
                URI destDir)

Załaduj plik określony przez identyfikator URI i umieszczaj go w katalogu docelowym.

Parametry
fileURI URI: plik do załadowania

destDir URI: miejsce docelowe, w którym ma się znaleźć wczytany plik

Zwroty
IRemoteFileResolver.ResolvedFile obiekt ERROR(/File) reprezentujący wczytany plik.

Rzuty
BuildRetrievalError gdy nie można znaleźć żądanego zasobu.

resolveRemoteFile

public static IRemoteFileResolver.ResolvedFile resolveRemoteFile (URI fileURI, 
                URI destDir, 
                IRemoteFileResolver resolver)

Załaduj plik określony przez identyfikator URI i umieszczaj go w katalogu docelowym.

Parametry
fileURI URI: plik do załadowania

destDir URI: miejsce docelowe, w którym ma się znaleźć wczytany plik

resolver IRemoteFileResolver: IRemoteFileResolver do użycia w celu rozwiązania problemu z plikiem

Zwroty
IRemoteFileResolver.ResolvedFile obiekt ERROR(/File) reprezentujący wczytany plik.

Rzuty
BuildRetrievalError gdy nie można znaleźć żądanego zasobu.