com.threerings.cast.bundle.tools
Class ComponentBundlerUtil

java.lang.Object
  extended by com.threerings.cast.bundle.tools.ComponentBundlerUtil

public class ComponentBundlerUtil
extends Object

Utilities needed when building component bundles.


Nested Class Summary
static class ComponentBundlerUtil.ActionMap
          Used when parsing action tilesets.
 
Constructor Summary
ComponentBundlerUtil()
           
 
Method Summary
protected static void addTileSetRuleSet(org.apache.commons.digester.Digester digester, TileSetRuleSet ruleSet)
          Configures ruleSet and hooks it into digester.
static Map<String,TileSet> parseActionTileSets(File file)
          Parses the action tileset definitions in the supplied file and puts them into a hash map, keyed on action name.
static Map<String,TileSet> parseActionTileSets(InputStream in)
          Parses the action tileset definitions in the supplied input stream, and puts them into a hash map, keyed on action name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentBundlerUtil

public ComponentBundlerUtil()
Method Detail

parseActionTileSets

public static Map<String,TileSet> parseActionTileSets(File file)
                                               throws IOException,
                                                      SAXException
Parses the action tileset definitions in the supplied file and puts them into a hash map, keyed on action name.

Throws:
IOException
SAXException

parseActionTileSets

public static Map<String,TileSet> parseActionTileSets(InputStream in)
                                               throws IOException,
                                                      SAXException
Parses the action tileset definitions in the supplied input stream, and puts them into a hash map, keyed on action name.

Throws:
IOException
SAXException

addTileSetRuleSet

protected static void addTileSetRuleSet(org.apache.commons.digester.Digester digester,
                                        TileSetRuleSet ruleSet)
Configures ruleSet and hooks it into digester.