public boolean parseNextLine ( ) { if ( firstTime ) { firstTime = false ; // Obtain an instance of an XMLReader implementation from a system property try { XMLReader parser = org . xml . sax . helpers . XMLReaderFactory . createXMLReader ( ) ; // Set the ContentHandler... parser . setContentHandler ( m_handler ) ; // Parse the file... parser . parse ( new InputSource ( m_reader ) ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } catch ( SAXException e ) { e . printStackTrace ( ) ; } m_record . close ( ) ; } try { return m_record . hasNext ( ) ; } catch ( DBException e ) { e . printStackTrace ( ) ; } return false ; }
Parse the next line and return false at EOF .