Package ai.djl.repository
Class SimpleUrlRepository
java.lang.Object
ai.djl.repository.AbstractRepository
ai.djl.repository.SimpleUrlRepository
- All Implemented Interfaces:
- Repository
A 
SimpleUrlRepository is a Repository contains an archive file from a HTTP URL.- See Also:
- 
Field SummaryFields inherited from class ai.djl.repository.AbstractRepositoryarguments, name, uri
- 
Method SummaryModifier and TypeMethodDescriptionprotected voiddownload(Path tmp, URI baseUri, Artifact.Item item, ai.djl.util.Progress progress) Returns a list ofMRLs in the repository.booleanisRemote()Returns whether the repository is remote repository.Returns the metadata at a mrl.Returns the artifact matching a mrl, version, and property filter.Methods inherited from class ai.djl.repository.AbstractRepositoryaddResource, getBaseUri, getCacheDirectory, getFile, getName, listDirectory, openStream, prepare, resolvePath, saveMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ai.djl.repository.Repositorydataset, dataset, getResourceDirectory, model, model, model, prepare
- 
Method Details- 
isRemotepublic boolean isRemote()Returns whether the repository is remote repository.- Returns:
- whether the repository is remote repository
 
- 
locateReturns the metadata at a mrl.- Parameters:
- mrl- the mrl of the metadata to retrieve
- Returns:
- the metadata
- Throws:
- IOException- if it failed to load the metadata
 
- 
resolveReturns the artifact matching a mrl, version, and property filter.- Parameters:
- mrl- the mrl to match the artifact against
- filter- the property filter
- Returns:
- the matched artifact
- Throws:
- IOException- if it failed to load the artifact
 
- 
getResourcesReturns a list ofMRLs in the repository.An empty list will be returned if underlying Repositoryimplementation does not support this feature.- Returns:
- a list of MRLs in the repository
 
- 
downloadprotected void download(Path tmp, URI baseUri, Artifact.Item item, ai.djl.util.Progress progress) throws IOException - Overrides:
- downloadin class- AbstractRepository
- Throws:
- IOException
 
 
-