Package com.jackmeng.stl
Class stl_AssetFetcher
java.lang.Object
com.jackmeng.stl.stl_AssetFetcher
public class stl_AssetFetcher
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
stl_AssetFetcher.assetfetcher_FetcherStyle
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,java.lang.Object>
lazyResource_cache
-
Constructor Summary
Constructors Constructor Description stl_AssetFetcher(stl_AssetFetcher.assetfetcher_FetcherStyle style)
-
Method Summary
Modifier and Type Method Description java.io.File
file(java.lang.String path)
java.awt.image.BufferedImage
image(java.lang.String path)
javax.swing.ImageIcon
image_icon(java.lang.String path)
byte[]
url(java.lang.String url)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
lazyResource_cache
private final java.util.Map<java.lang.String,java.lang.Object> lazyResource_cache
-
-
Constructor Details
-
stl_AssetFetcher
-
-
Method Details
-
image_icon
public javax.swing.ImageIcon image_icon(java.lang.String path)- Parameters:
path
-- Returns:
- ImageIcon
-
image
public java.awt.image.BufferedImage image(java.lang.String path) -
file
public java.io.File file(java.lang.String path)- Parameters:
path
-- Returns:
- File
-
url
public byte[] url(java.lang.String url) throws java.io.IOException- Throws:
java.io.IOException
-