com.threerings.media.tile.bundle
Class BundleUtil

java.lang.Object
  extended by com.threerings.media.tile.bundle.BundleUtil

public class BundleUtil
extends Object

Bundle related utility functions.


Field Summary
static String METADATA_PATH
          The path to the metadata resource that we will attempt to load from our resource set.
 
Constructor Summary
BundleUtil()
           
 
Method Summary
static TileSetBundle extractBundle(File file)
          Extracts, but does not initialize, a serialized tileset bundle instance from the supplied file.
static TileSetBundle extractBundle(ResourceBundle bundle)
          Extracts, but does not initialize, a serialized tileset bundle instance from the supplied resource bundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

METADATA_PATH

public static final String METADATA_PATH
The path to the metadata resource that we will attempt to load from our resource set.

See Also:
Constant Field Values
Constructor Detail

BundleUtil

public BundleUtil()
Method Detail

extractBundle

public static TileSetBundle extractBundle(ResourceBundle bundle)
                                   throws IOException,
                                          ClassNotFoundException
Extracts, but does not initialize, a serialized tileset bundle instance from the supplied resource bundle.

Throws:
IOException
ClassNotFoundException

extractBundle

public static TileSetBundle extractBundle(File file)
                                   throws IOException,
                                          ClassNotFoundException
Extracts, but does not initialize, a serialized tileset bundle instance from the supplied file.

Throws:
IOException
ClassNotFoundException