public static Map < String , TileSet > parseActionTileSets ( InputStream in ) throws IOException , SAXException { Digester digester = new Digester ( ) ; digester . addSetProperties ( "actions" + ActionRuleSet . ACTION_PATH ) ; addTileSetRuleSet ( digester , new SwissArmyTileSetRuleSet ( ) ) ; addTileSetRuleSet ( digester , new UniformTileSetRuleSet ( "/uniformTileset" ) ) ; Map < String , TileSet > actsets = new ActionMap ( ) ; digester . push ( actsets ) ; digester . parse ( in ) ; return actsets ; }
Parses the action tileset definitions in the supplied input stream and puts them into a hash map keyed on action name .