public List < MapRow > readTableConditional ( Class < ? extends TableReader > readerClass ) throws IOException { List < MapRow > result ; if ( DatatypeConverter . getBoolean ( m_stream ) ) { result = readTable ( readerClass ) ; } else { result = Collections . emptyList ( ) ; } return result ; }
Conditionally read a nested table based in the value of a boolean flag which precedes the table data .