public class BundleUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ACTION_SETS_PATH
The path in the metadata bundle to the serialized action tile sets table.
|
static String |
ACTIONS_PATH
The path in the metadata bundle to the serialized action table.
|
static String |
CLASSES_PATH
The path in the metadata bundle to the serialized component class table.
|
static String |
COMPONENTS_PATH
The path in the component bundle to the serialized component id to class/type mapping.
|
static String |
IMAGE_EXTENSION
The file extension of our action tile images.
|
static String |
TILESET_EXTENSION
The serialized tileset extension for our action tilesets.
|
| Constructor and Description |
|---|
BundleUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
loadObject(ResourceBundle bundle,
String path,
boolean wipeOnFailure)
Attempts to load an object from the supplied resource bundle with the specified path.
|
public static final String ACTIONS_PATH
public static final String ACTION_SETS_PATH
public static final String CLASSES_PATH
public static final String COMPONENTS_PATH
public static final String IMAGE_EXTENSION
public static final String TILESET_EXTENSION
public static Object loadObject(ResourceBundle bundle, String path, boolean wipeOnFailure) throws IOException, ClassNotFoundException
wipeOnFailure - if there is an error reading the object from the bundle and this
parameter is true, we will instruct the bundle to delete its underlying jar file before
propagating the exception with the expectation that it will be redownloaded and repaired the
next time the application is run.IOException - thrown if an I/O error occurs while reading the object from the
bundle.ClassNotFoundExceptionCopyright © 2015. All rights reserved.