Interface LocalizableResource
- All Superinterfaces:
Resource
- All Known Implementing Classes:
URLResource
Resource which can be located locally
If local (checked via Resource.isLocal()), getFile() will return its local location,
without any download or copy involved
-
Method Summary
Methods inherited from interface Resource
clone, exists, getContentLength, getLastModified, getName, isLocal, openStream
-
Method Details
-
getFile
File getFile()- Returns:
- the local file of this resource.
- Throws:
IllegalStateException- whenResource.isLocal()returnsfalse
-