Interface LocalizableResource
-
- All Superinterfaces:
Resource
- All Known Implementing Classes:
URLResource
public interface LocalizableResource extends Resource
Resource which can be located locallyIf local (checked via
Resource.isLocal()
),getFile()
will return its local location, without any download or copy involved
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.File
getFile()
-
Methods inherited from interface org.apache.ivy.plugins.repository.Resource
clone, exists, getContentLength, getLastModified, getName, isLocal, openStream
-
-
-
-
Method Detail
-
getFile
java.io.File getFile()
- Returns:
- the local file of this resource.
- Throws:
java.lang.IllegalStateException
- whenResource.isLocal()
returnsfalse
-
-