public String getResource ( final int level ) { if ( level < resource . length ) { return resource [ level ] ; } // offset is out of bounds... throw new IndexOutOfBoundsException ( "Index: " + level + ", Size: " + resource . length ) ; }
Returns the resource at the specified level .