public interface AssetLocation
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
open(java.lang.String assetPath)
Opens given asset as
InputStream. |
java.io.InputStream open(java.lang.String assetPath)
throws java.io.IOException
Opens given asset as InputStream.
The default implementation uses the AssetManager of the application context
to access the assets of Time4A. The path of such assets consists of three parts:
Example: The timezone repository can be found by the path "net/time4j/tzdata/tzrepo/tzdata.repository".
assetPath - path of assetjava.io.IOException - if the asset cannot be open for any reason