public void initialise ( XMLReader reader , AbstractGpxParserDefault parent ) { setReader ( reader ) ; setParent ( parent ) ; setContentBuffer ( parent . getContentBuffer ( ) ) ; setTrkPreparedStmt ( parent . getTrkPreparedStmt ( ) ) ; setTrkSegmentsPreparedStmt ( parent . getTrkSegmentsPreparedStmt ( ) ) ; setTrkPointsPreparedStmt ( parent . getTrkPointsPreparedStmt ( ) ) ; setElementNames ( parent . getElementNames ( ) ) ; setCurrentLine ( parent . getCurrentLine ( ) ) ; setTrksegList ( new ArrayList < Coordinate > ( ) ) ; setTrkList ( new ArrayList < LineString > ( ) ) ; }
Create a new specific parser . It has in memory the default parser the contentBuffer the elementNames the currentLine and the trkID .