Code example for Parser

Methods: parsesetDocumentHandler

0
	throws ImportExportException 
    { 
	Consumer       consumer;
 
	consumer = createConsumer();
	parser.setDocumentHandler( consumer );
	try { 
	    parser.parse( input );
	} catch ( SAXException except ) {
	    throw new ImportExportException( except );
	} catch ( IOException except ) {
	    throw new ImportExportException( except );
	} 
	if ( consumer.getResults() != null ) {
	    importEntries( consumer.getResults() );
	} 
    } 
 
    public void readImportDescriptor( InputStream input )
	throws IOException, SAXException 
    {