public class Assets extends AssetsImpl
AssetsImpl.LocationsSLASH| Constructor and Description |
|---|
Assets() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
fetch(java.lang.String assetName) |
static IOUtils.InfoInputStream |
fetchInputStream(java.lang.String assetName) |
static Reader |
fetchReader(java.lang.String assetName,
java.nio.charset.Charset chset) |
static java.lang.String |
getPkg() |
static File |
getRetentionFile(java.lang.String assetName) |
static java.net.URL |
getWeb() |
static boolean |
retain(java.lang.String assetName,
java.lang.String contents)
Store a local copy of the asset to ~/.physpics/assets/.
|
fetch, fetchInputStream, fetchReader, getRetentionFile, retainpublic static java.lang.String getPkg()
public static java.net.URL getWeb()
public static java.lang.String fetch(java.lang.String assetName)
assetName - name of asset filepublic static IOUtils.InfoInputStream fetchInputStream(java.lang.String assetName)
assetName - name of asset filepublic static Reader fetchReader(java.lang.String assetName,
java.nio.charset.Charset chset)
assetName - name of asset filechset - The character encoding of the file.
If null, decoding is via UTF-8public static boolean retain(java.lang.String assetName,
java.lang.String contents)
assetName - name of the asset filecontents - what to storepublic static File getRetentionFile(java.lang.String assetName)
assetName - name of the asset file