public static List < TableSpec > getTableSpecs ( InputStream in ) throws InconsistentTableSpecException , IOException { try { TableSpecDeserializer tsd = new TableSpecDeserializer ( ) ; XmlTransformUtility . parseWithoutValidating ( in , tsd ) ; tsd . assertTableSpecsConsistent ( ) ; return tsd . getTableSpecs ( ) ; } catch ( InconsistentTableSpecException itse ) { throw itse ; } catch ( Exception e ) { throw new IOException ( "Error parsing XML: " + e . getMessage ( ) ) ; } }
Gets a TableSpec for each table element in the stream where the stream contains a valid XML document containing one or more table elements wrapped in the root element .